System and method predicting effect of cache on query elapsed response time during application development stage
AssigneeTata Consultancy Services Limited
InventorRekha Singhal
Life of this patent
Estimating the term…
Abstract
System(s) and method(s) for predicting effect of database cache on query elapsed response time during an application development stage are disclosed. Query executed on a database is classified and a query type is obtained. Database statistics are collected to further determine one or more cache miss factors with respect to the query type. One or more time components are calculated due to the one or more cache miss factors with respect to the query type. The one or more time components are used to predict the query elapsed response time for varying size of the database.
Claims15
A system predicting effect of cache on query elapsed response time during an application development stage, the system comprising:
- a processor;
- and
- a memory coupled to the processor, wherein the processor executes a plurality of modules stored in the memory, and wherein the plurality of module comprise:
- a classification module to classify a query executed on a database to obtain a query type, wherein the query is classified based on a database access pattern of the query along with a relation between one or more keys associated with the query, wherein the key refers to one or more columns referred to in the query;
- a determination module to:
- collect one or more database statistics with respect to the query type, wherein the database statistics refers to at least one data distribution pattern in the database and at least one data access pattern of the query inside the database;
- and
- determine one or more cache miss factors by using the database statistics, wherein the one or more cache miss factors predicts number of access of the cache by the query not found in the database cache;
- a calculation module to calculate one or more time components associated with processing of the query in the database with respect to the one or more cache miss factors;
- and
- a prediction module o predict the query elapsed response time by using the one or more time related values for varying size of the database.
A method predicting effect of cache on query elapsed response time during an application development stage, the method comprising:
- classifying a query executed on a database to obtain a query type, wherein the query is classified based on a database access pattern of the query along with a relation between one or more keys associated with the query, wherein the key refers to one or more columns referred to in the query;
- collecting one or more database statistics with respect to the query type, wherein the database statistics refers to at least one data distribution pattern in the database and at least one data access pattern of the query inside the database;
- and
- determining one or more cache miss factors by using the database statistics, wherein the one or more cache miss factors predicts number of access of the cache by the query not found in the database cache;
- calculating one or more time related value associated with processing of the query in the database with respect to the one or more cache miss factors;
- and
- predicting the query elapsed response time by using the one or more time related values for varying size of the database.
A computer program product having embodied thereon a computer program predicting effect of cache on query elapsed response time during an application development stage, the computer program product comprising:
- a program code for classifying a query executed on a database to obtain a query type, wherein the query is classified based on a database access pattern of the query along with a relation between one or more keys associated with the query;
- a program code for collecting one or more database statistics with respect to the query type, wherein the database statistics refers to a data distribution in the database and the data access pattern of the query inside the database;
- a program code for determining one or more cache miss factors by using the database statistics, wherein the one or more cache miss factors predicts access of the cache by the query;
- a program code for calculating one or more time related value associated with processing of the query in the database with respect to the one or more cache miss factors;
- and
- a program code for predicting the query elapsed response time by using the one or more time related values for varying size of the database.
Dependencies are inferred from the claim text.