Curve Fitting for SQL Join Queries on Data Streams

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional SQL query systems face challenges in handling unbounded data streams, particularly with join operations, as they require significant memory and are inefficient in real-time analysis, leading to memory growth and data loss issues.

Innovation Solution

Implementing a system that uses time series analysis and ARIMA models to approximate data streams with equations, allowing for the execution of SQL queries without storing data, using curve fitting techniques to calculate coefficients iteratively and solve simultaneous equations for query results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional SQL join operations are used on data streams, then query results can be obtained by comparing each data point, but unbounded memory growth occurs because datasets are unbounded

Engineering Contradiction:
Improvequery accuracyVSAvoidmemory consumption
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The system performs preliminary actions by fitting curves to data streams in advance and storing these curve representations instead of raw data. When a join query arrives, the system uses the pre-fitted curves to generate candidate join points by solving the curve equations, rather than comparing all raw data points. This preliminary curve fitting eliminates the need to store unbounded raw data while preserving the ability to accurately answer join queries.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates a simplified copy of the data stream in the form of a mathematical curve (e.g., polynomial, sinusoidal, exponential). This curve copy captures the essential pattern and trends of the original data stream, allowing join operations to be performed on the curve representations rather than the full raw data. The curve copy consumes constant memory while maintaining query accuracy for trend-aligned data.

Inventive Principle:
Principle #26Copying

2Productivity

If real-time analysis of data streams is performed using SQL queries, then real-time results can be obtained, but computational intensity increases significantly

Engineering Contradiction:
Improvereal-time query processingVSAvoidcomputational intensity
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The system replaces the mechanical approach of comparing individual data points (brute-force join operation) with a mathematical approach using curve fitting and equation solving. Instead of iterating through and comparing millions of raw data points, the system substitutes this with evaluating pre-fitted mathematical curves, which requires significantly fewer computational operations and can be performed in real-time with much lower computational intensity.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Adaptability or versatility

If data streams are stored in a database for analysis, then queries can be executed on stored data, but data loss occurs due to memory constraints

Engineering Contradiction:
Improvequery capabilityVSAvoiddata loss
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system changes the parameter representation of data streams from discrete data points to continuous mathematical functions with parameters (e.g., polynomial coefficients, sinusoidal amplitude and frequency). This parameter transformation allows the system to maintain query capability by evaluating curves at any point in time, while preventing data loss because the curve representation preserves the underlying pattern and trends even as individual data points pass through memory.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS8150861B2Technique for implementing database queries for data streams using a curved fitting based approach
Publication Date: 2012.04.03 ORACLE INT CORP
  • US8150861B2 patent drawing
  • US8150861B2 patent drawing
  • US8150861B2 patent drawing

AI summary

A stream of data can be estimated by a model to produce an estimated equation. The estimated equation can be used to calibrate a response to a SQL type join query.