Query Processing Caching with Segmented Cache Service Instances

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern computer systems face inefficiencies in processing queries due to the lack of effective caching mechanisms, leading to increased latency and resource utilization when handling multiple client requests for data, especially when cache misses occur.

Innovation Solution

A query processing system is implemented with multiple cache service instances that generate keys based on user access rights and query timestamps, selecting the appropriate cache instance to retrieve or cache data, and handling cache misses by fetching data from storage for immediate processing and caching.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If caching mechanisms are implemented to reduce latency, then query processing speed is improved, but system complexity increases due to multiple cache service instances and key management

Engineering Contradiction:
Improvequery processing speedVSAvoidsystem complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The caching system is divided into multiple cache service instances, each handling specific cache operations independently. This segmentation allows the system to scale cache capacity and distribute cache management responsibilities, reducing the complexity burden on any single component while maintaining high query processing speed through parallel cache operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A key generation mechanism acts as an intermediary between queries and cache service instances. The key, derived from query parameters and user access rights, mediates the routing of queries to appropriate cache instances and the retrieval of cached results, simplifying the interaction between the query processing system and the distributed cache infrastructure.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of time

If cached data is used to improve responsiveness, then latency is reduced, but data storage requirements increase

Engineering Contradiction:
ImprovelatencyVSAvoiddata storage requirements
Core Design Contradiction:
Loss of timeVSQuantity of substance

Solution Approach 1:

The caching system implements local quality by storing cached data with specific characteristics tied to user access rights and query types. Each cache service instance maintains data with properties optimized for its specific function, allowing the system to reduce latency for frequently accessed data while avoiding unnecessary storage of data that doesn't benefit from caching, thus balancing storage requirements with performance gains.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS10942938B2Caching for query processing systems
Publication Date: 2021.03.09 SAP SE
  • US10942938B2 patent drawing
  • US10942938B2 patent drawing
  • US10942938B2 patent drawing

AI summary

Some embodiments provide a non-transitory machine-readable medium that stores a program. The program receives a query for data from a client device. The program further generates a key based on the query for the data. The program also selects a cache service instance in a plurality of cache service instances. The program further sends the cache service instance the key and a request for a cached version of the data. The program also receives the cached version of the data from the cache service instance. The program further processes the query based on the cached version of the data. The program also sends a result set for the query to the client device.