Query Response Time Prediction Using Cache Miss Factors

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for predicting query elapsed response time during application development stages are inadequate, particularly in handling varying database sizes and data volume growth, and often rely on past query history or Machine Learning approaches that are not suitable for this stage and may increase error possibilities.

Innovation Solution

A system and method that classify queries based on database access patterns, determine cache miss factors using database statistics, and calculate time-related values to predict query elapsed response time, specifically designed for the application development stage and capable of handling varying database sizes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If existing methods use past query history or Machine Learning approaches to predict query response time, then prediction capability is provided, but accuracy deteriorates during application development stage and error possibility increases

Engineering Contradiction:
Improveprediction accuracyVSAvoiderror possibility
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent changes the parameters used for prediction from past query history and ML models to database statistics including data distribution, access patterns, and cache miss factors. This parameter transformation enables accurate predictions during application development stage by using fundamental database characteristics rather than historical data that may not represent future behavior.

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If database size increases to handle growing data volume, then data storage capability is improved, but query response time deteriorates due to increased data access complexity

Engineering Contradiction:
Improvedata volumeVSAvoidquery response time
Core Design Contradiction:
Quantity of substanceVSLoss of time

Solution Approach 1:

The patent introduces cache miss factors as an intermediary parameter that mediates between database size and query response time. By calculating cache miss factors based on database statistics and using them in the prediction formula, the system accounts for cache behavior in larger databases without requiring actual changes to database size or cache configuration.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Loss of time

If cache configuration is modified to improve query performance, then response time is reduced, but system complexity increases due to DB server internal changes

Engineering Contradiction:
Improvequery response timeVSAvoidDB server internal changes
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent creates a virtual copy of cache behavior through mathematical modeling. Instead of actually modifying DB server cache configurations, the system calculates cache miss factors that replicate cache behavior effects in the prediction formula. This allows performance prediction without implementing complex cache configuration changes in the actual database system.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10372711B2System and method predicting effect of cache on query elapsed response time during application development stage
Publication Date: 2019.08.06 TATA CONSULTANCY SERVICES LTD
  • US10372711B2 patent drawing
  • US10372711B2 patent drawing
  • US10372711B2 patent drawing

AI summary

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.