SYSTEM AND METHOD FOR QUERY EXPRESSION OPTIMIZATION
First Claim
1. A system for optimizing execution of a query expression on a database engine of a database server, comprising:
- a database engine on a database server for receiving the query expression with a plurality of query language elements;
an evaluation counter module within the database engine, wherein the evaluation counter module increments an evaluation counter value corresponding to a query language element result;
a flag within the database engine, wherein the flag is configured to be set in the database engine when the evaluation counter value reaches a threshold value; and
a query processor within the database engine, wherein the query processor is configured to evaluate the efficiency of the query language elements in the query expression after the flag is set by comparing the evaluation counter value for each query language element against a set of optimization criteria.
2 Assignments
0 Petitions
Accused Products
Abstract
A method provided for optimizing a query expression on a database engine of a database server. The query expression is sent to the database engine. The query expression contains a plurality of query language elements. The database engine initiates query processing of the query expression. An evaluation counter within the database engine increments an evaluation counter value corresponding to a query language element result. A flag is set within the database engine when the evaluation counter value reaches a threshold value. The database engine can then evaluate the efficiency of the query language elements in the query expression by comparing the evaluation counter value for each query language element against a set of optimization criteria.
-
Citations
20 Claims
-
1. A system for optimizing execution of a query expression on a database engine of a database server, comprising:
-
a database engine on a database server for receiving the query expression with a plurality of query language elements; an evaluation counter module within the database engine, wherein the evaluation counter module increments an evaluation counter value corresponding to a query language element result; a flag within the database engine, wherein the flag is configured to be set in the database engine when the evaluation counter value reaches a threshold value; and a query processor within the database engine, wherein the query processor is configured to evaluate the efficiency of the query language elements in the query expression after the flag is set by comparing the evaluation counter value for each query language element against a set of optimization criteria. - View Dependent Claims (2)
-
-
3. A method for optimizing a query expression on a database engine of a database server, comprising:
-
sending the query expression to the database engine, wherein the query expression contains a plurality of predicates; initiating query processing of the query expression; incrementing an evaluation counter, wherein the counter increments a evaluation counter value corresponding to a predicate when a predicate evaluation results in a Boolean result; setting a flag within the database engine when the evaluation counter value reaches a threshold value; and evaluating the efficiency of an ordering of the predicates in the query expression after the flag is set by comparing the evaluation counter value for each predicate against the evaluation counter value of the other predicates. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A method for optimizing a query expression on a database engine of a database server, comprising:
-
sending the query expression to the database engine, wherein the query expression contains a plurality of query language elements; initiating query processing of the query expression; incrementing an evaluation counter, wherein the counter increments a evaluation counter value corresponding to a query language element when a specified query language element evaluation results; setting a flag within the database engine when the evaluation counter value reaches a threshold value; and evaluating the efficiency of the query language elements in the query expression after the flag is set by comparing the evaluation counter value for each query language element against a set of optimization criteria. - View Dependent Claims (19, 20)
-
Specification