Systems and methods for estimating query response times in a computer system
First Claim
1. A method for estimating the time for a computer system to respond to a database query, comprising:
- determining an estimated cost for executing the database query;
identifying, using the estimated cost, previously executed queries comprising characteristics the same as, or similar to, the database query; and
deriving an estimate of the time required for responding to the database query based on information associated with the previously executed queries.
2 Assignments
0 Petitions
Accused Products
Abstract
A query performance prediction ("QPP") module is provided as part of an applications layer residing on respective user stations operating in conjunction with a centralized host computer system. The QPP module correlates estimated system cost information for a database query provided from a database management system associated with the computer system with statistics compiled from previous queries in order to estimate the system response time. In particular, an estimated CPU time for executing the present query is derived by extrapolating actual CPU times recorded for past queries having the closest estimated costs for accessing the same, or similar, tables and items in the database, using a form of a "nearest neighbor" algorithm to match the present query to either identical or statistically closest past queries. The estimated CPU time for the present query is then multiplied by a current ratio of total elapsed times-to-CPU times for the system to produce an estimated total elapsed time for responding to the query.
236 Citations
20 Claims
-
1. A method for estimating the time for a computer system to respond to a database query, comprising:
-
determining an estimated cost for executing the database query; identifying, using the estimated cost, previously executed queries comprising characteristics the same as, or similar to, the database query; and deriving an estimate of the time required for responding to the database query based on information associated with the previously executed queries. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method for estimating the time required for a computer system to respond to a present query, comprising:
-
identifying a plurality of previously executed queries comprising characteristics the same as, or similar to, the present query; and deriving an estimate of the time required for responding to the present query based on information associated with the plurality of previously executed queries. - View Dependent Claims (7, 8, 9, 10, 11)
-
-
12. A machine readable medium having stored thereon a program for causing a computer to:
-
determine an estimated cost for executing a present query; identify, using the estimated cost, one or more previously executed queries comprising characteristics the same as, or similar to, the present query; and derive an estimate of the time required for responding to the present query based on information associated with the one or more previously executed queries.
-
-
13. A machine readable medium having stored thereon a program for causing a computer to:
-
identify one or more previously executed queries comprising characteristics the same as, or similar to, a present query; and derive an estimate of the time to respond to the present query based on information associated with the one or more previously executed queries. - View Dependent Claims (14, 15)
-
-
16. A computer system, comprising:
-
a computer; and a data storage device, said data storage device comprising a program residing thereon for causing said computer to estimate a time for the computer system to respond to a present database query by determining an estimated cost for executing the present database query, identifying, using the estimated cost, previously executed queries comprising characteristics the same as, or similar to, the present database query, and deriving an estimate of the time required for responding to the present database query based on information associated with the previously executed queries.
-
-
17. A computer system, comprising:
-
a computer; and a data storage device, said data storage device comprising a program residing thereon for causing said computer to estimate a time for the computer system to respond to a present query by identifying a previously executed query comprising characteristics the same as, or similar to, the present query, and deriving an estimate of a time for responding to the present query based on information associated with the previously executed query. - View Dependent Claims (18, 19, 20)
-
Specification