Cloud Data Query AQP Sampling for Low-Latency Refinement

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The 'decoupled storage-compute' architecture in cloud-native data warehouses experiences significant data access latency due to network latency between compute and storage nodes, leading to prolonged wait times and compromised user experience.

Innovation Solution

Generate N approximate query processing (AQP) messages with varying sampling parameters, allowing simultaneous data query processing across multiple computing clusters, and send M accurate data query responses to the client, ensuring quick feedback and improved accuracy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If decoupled storage-compute architecture is used, then scalability and elastic scaling capability are improved, but data access latency increases significantly

Engineering Contradiction:
Improveelastic scaling capabilityVSAvoiddata access latency
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent segments the data access process into multiple parallel approximate query processing tasks with different sampling parameters. By dividing the single query into N parallel AQP queries, the system can retrieve results from multiple storage nodes simultaneously, reducing the impact of network latency while maintaining the decoupled architecture's scalability benefits.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent merges multiple approximate query processing results with different sampling parameters into a single comprehensive query result. By combining results from N parallel AQP queries, the system achieves both fast response (from lower sampling parameter queries) and high accuracy (from aggregated results), effectively addressing the latency issue while preserving architectural flexibility.

Inventive Principle:
Principle #5Merging (Combining)

2Speed

If sampling parameter value is decreased, then query response speed is improved, but query result accuracy deteriorates

Engineering Contradiction:
Improvequery response speedVSAvoidquery result accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The patent dynamically adjusts sampling parameters across multiple parallel queries rather than using a fixed parameter. By submitting N AQP queries with progressively different sampling parameters, the system adapts to balance speed and accuracy requirements, providing fast initial results while continuously refining accuracy through additional queries.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the sampling parameter values across multiple parallel AQP queries. By varying the sampling parameter from low to high values across N queries, the system generates a spectrum of results that balance speed and accuracy, allowing the client to receive quick preliminary results while more accurate results follow sequentially.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If multiple AQP messages with different sampling parameters are processed, then query result accuracy is improved, but system complexity increases

Engineering Contradiction:
Improvequery result accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent makes the query processing system universal by implementing a standardized AQP message format and processing pipeline that handles multiple sampling parameters uniformly. The same infrastructure processes all N AQP queries, and the result merging mechanism works consistently regardless of the number of parallel queries, reducing the complexity overhead of handling multiple parameters.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250217374A1Data Query Method and Cloud Service System
Publication Date: 2025.07.03 HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
  • US20250217374A1 patent drawing
  • US20250217374A1 patent drawing
  • US20250217374A1 patent drawing

AI summary

A data query method comprises N AQP messages that are generated based on a data query message. In addition, sampling parameters corresponding to the AQP messages have different values. A data query result may be quickly fed back to a client for an AQP message with a small sampling parameter value. Moreover, a data query result corresponding to each AQP message may be obtained based on the N AQP messages, so that the data query results fed back to the client are increasingly accurate.