ESTIMATING AND MONITORING QUERY PROCESSING TIME
First Claim
1. A method of managing the execution of a query, comprising:
- receiving a query to be executed;
calculating an initial execution time for the received query;
upon determining the calculated initial execution time does not exceed a first threshold amount of time, executing the query by operation of one or more computer processors;
calculating an updated execution time for the received query while the query is executing; and
halting the execution of the query upon determining that the updated execution time exceeds a second threshold amount of time.
3 Assignments
0 Petitions
Accused Products
Abstract
Techniques are described for managing query execution by estimating and monitoring query execution time. Embodiments of the invention may generally receive a query to be executed and calculate an initial estimated execution time for the received query. If the initial estimated execution time does not exceed a threshold amount of time, embodiments of the invention may submit the query for execution. Once execution of the query has begun, embodiments of the invention may calculate an updated estimated execution time for the executing query, and if the updated estimated execution time exceeds the threshold amount of time, may halt the execution of the query.
43 Citations
20 Claims
-
1. A method of managing the execution of a query, comprising:
-
receiving a query to be executed; calculating an initial execution time for the received query; upon determining the calculated initial execution time does not exceed a first threshold amount of time, executing the query by operation of one or more computer processors; calculating an updated execution time for the received query while the query is executing; and halting the execution of the query upon determining that the updated execution time exceeds a second threshold amount of time. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system, comprising:
-
a computer processor; and a memory containing a program that, when executed on the computer processor, performs an operation for managing the execution of a query, comprising; receiving a query to be executed; calculating an initial execution time for the received query; upon determining the calculated initial execution time does not exceed a first threshold amount of time, executing the query; calculating an updated execution time for the received query while the query is executing; and halting the execution of the query upon determining that the updated execution time exceeds a second threshold amount of time. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer program product for managing the execution of a query, comprising:
-
a computer-readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code to receive a query to be executed; computer readable program code to calculate an initial execution time for the received query; computer readable program code to, upon determining the calculated initial execution time does not exceed a first threshold amount of time, execute the query; computer readable program code to calculate an updated execution time for the received query while the query is executing; and computer readable program code to halt the execution of the query upon determining that the updated execution time exceeds a second threshold amount of time. - View Dependent Claims (20)
-
Specification