Predictive Caching in Relational Databases

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current predictive caching methods in relational databases do not effectively improve cache hit rates by pre-executing statements based on previous usage patterns, leading to inefficient data retrieval and processing times.

Innovation Solution

A system and method that analyze a stream of statements to detect usage patterns and pre-execute predicted statements, utilizing a collector module to monitor and collect statements, an analyzer module to identify patterns, and a front runner module to execute these patterns proactively, thereby increasing cache efficiency and reducing processing time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional caching methods are used in relational databases, then the system maintains simplicity and stability, but the cache hit rate is low and data retrieval efficiency is poor

Engineering Contradiction:
Improvecache hit rateVSAvoiddata retrieval time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system analyzes historical query patterns and proactively pre-loads predicted query results into the cache before they are actually requested. The predictive caching module detects usage patterns from previous queries and executes predicted statements in advance, ensuring that when the actual query arrives, the data is already cached and ready for immediate retrieval, thus resolving the contradiction between cache hit rate and data retrieval time.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If predictive caching is implemented by analyzing usage patterns and pre-executing statements, then data retrieval speed improves, but the system complexity increases due to additional modules and pattern analysis

Engineering Contradiction:
Improvedata processing efficiencyVSAvoidsystem architecture complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The predictive caching system is divided into distinct functional modules: a pattern detection module that analyzes historical queries, a prediction module that generates predicted statements, and a caching module that stores and serves results. This segmentation allows each module to perform its specific function efficiently while maintaining overall system manageability and modularity, thus improving productivity without overwhelming complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system automatically analyzes its own query patterns and generates predictions without requiring external intervention or manual configuration. The predictive caching module continuously monitors usage patterns and autonomously decides what to pre-cache, reducing the need for complex external control mechanisms and simplifying the overall system architecture while maintaining high productivity.

Inventive Principle:
Principle #25Self-service

3Loss of time

If the system pre-executes predicted statements to improve cache performance, then application execution time decreases, but additional processing overhead is introduced during pattern analysis and prediction

Engineering Contradiction:
Improveapplication execution timeVSAvoidprocessing overhead
Core Design Contradiction:
Loss of timeVSUse of energy by moving object

Solution Approach 1:

The system performs pattern analysis and prediction at periodic intervals rather than continuously for every query. The predictive caching module accumulates query patterns over a period, then generates predictions batch-wise, reducing the instantaneous processing overhead while still maintaining improved cache performance. This periodic approach balances the trade-off between application execution time and processing overhead by smoothing out the computational load.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS10528565B2Logical level predictive caching in relational databases
Publication Date: 2020.01.07 QUEST SOFTWARE INC
  • US10528565B2 patent drawing
  • US10528565B2 patent drawing
  • US10528565B2 patent drawing

AI summary

A system, method, and computer-readable medium for performing a predictive caching operation in which a hit rate is improved by pre executing statements that are predicted based upon previous use patterns. More specifically, by analyzing a stream of statements provided to a server, such as a database server, patterns of usage are detected and based upon these patterns, statements provided to the server are executed before the actual application executes the predicted statements. Thus the application executes faster because the data requested is already cached based upon the predictive execution.