Database Query Processing With Data Stream Buffer Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Queries on databases receiving incoming data streams often produce inaccurate results due to unreflected modifications, such as updates and deletions, if the database has not yet been updated by the data stream, leading to incomplete or outdated data retrieval.

Innovation Solution

The query is split into sub-queries based on the age of the data, with one sub-query for the data stream buffer and another for the database, allowing for accurate retrieval of data by generating buffer and database sub-queries based on the specified range, and combining their results to provide a comprehensive query response.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the database is queried alone without considering the data stream buffer, then the query processing is simple, but the query results are inaccurate and outdated

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery processing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the query into two separate sub-queries: one for the data stream buffer and another for the database. This segmentation allows each sub-query to be processed independently according to its specific characteristics, ensuring that the most recent data from the buffer is captured while maintaining the simplicity of querying each component separately. The results are then merged to produce the final accurate query result.

Inventive Principle:
Principle #1Segmentation

2Measurement precision

If the query waits for all data stream modifications to be reflected in the database, then the query results are accurate, but the query response time increases

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery response time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent performs preliminary action by directly querying the data stream buffer for the most recent data modifications before the database has fully processed them. This allows the system to retrieve up-to-date information without waiting for the database to complete its data processing cycle, thereby reducing query response time while maintaining accuracy.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If only the database is queried, then the query processing is fast, but the data retrieved is incomplete and outdated

Engineering Contradiction:
Improvequery processing speedVSAvoiddata completeness
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent segments the data storage system into two components: the data stream buffer for recent modifications and the database for historical data. By querying both segments and merging their results, the system maintains fast processing speeds while ensuring data completeness. The buffer sub-query captures the most recent changes that would otherwise be missing from a database-only query.

Inventive Principle:
Principle #1Segmentation

4Measurement precision

If the query is split into sub-queries for buffer and database, then the query result accuracy is improved, but the query processing complexity increases

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery processing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent divides the complex query into two simpler sub-queries that can be processed independently. The buffer sub-query handles recent data modifications while the database sub-query handles historical data. This segmentation reduces the complexity of each individual query while improving overall accuracy through the combination of results from both sources.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10795876B2Processing query of database and data stream
Publication Date: 2020.10.06 HEWLETT PACKARD ENTERPRISE DEV LP
  • US10795876B2 patent drawing
  • US10795876B2 patent drawing
  • US10795876B2 patent drawing

AI summary

Example implementations relate to processing a query of a database and a data stream. For example, a computing device may include a processor. The processor may receive a query associated with at least one of a database and a buffer storing streamed data from a data stream. The database may store database data previously stored in the buffer. The processor may identify a range associated with the query and generate a set of sub-queries including at least one of a buffer sub-query if the range is associated with the streamed data in the buffer and a database sub-query if the range is associated with the database data in the database. The processor may process the set of sub-queries and provide a query result of the query, where the query result is a combination of sub-query results of the set of sub-queries.