Heavy Hitter Summary for Query Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed data management systems, query optimization is challenging due to the variance in processing times for queries, especially as dataset sizes grow, leading to inefficiencies in resource utilization and performance.

Innovation Solution

The implementation of a two-stage heavy hitter estimation process to identify the most frequently queried items (heavy hitters) across multiple partitions, constructing a partition-level and dataset-level heavy hitter summary to optimize query trees by associating key frequencies with nodes, thereby improving query optimization accuracy and efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional query optimization methods are used without heavy hitter analysis, then the query optimization process is simpler and faster to execute, but the accuracy in identifying optimal query trees deteriorates, leading to suboptimal query performance

Engineering Contradiction:
Improveaccuracy in identifying optimal query treesVSAvoidcomplexity of query optimization process
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system performs preliminary heavy hitter identification and frequency estimation before query optimization. By pre-computing the heavy hitter summary structure and storing frequency information in advance, the system prepares optimization data beforehand, improving accuracy without proportionally increasing real-time optimization complexity

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The heavy hitter summary structure acts as an intermediary between raw query data and the query optimizer. This intermediate structure pre-organizes frequency information in a manageable format, allowing the optimizer to make accurate decisions without directly processing the full complexity of the underlying dataset

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If heavy hitter analysis is performed on the entire dataset without partitioning, then the heavy hitter identification is more accurate, but the computational resources and time required increase significantly

Engineering Contradiction:
Improveaccuracy of heavy hitter identificationVSAvoidquery optimization efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The system divides the dataset into multiple partitions and performs heavy hitter identification independently on each partition. This segmentation allows parallel processing of partitions, significantly reducing the time and computational resources required while maintaining accurate identification of heavy hitters at both partition and dataset levels

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs heavy hitter analysis on sampled data units from each partition rather than examining every single data unit. This partial action approach maintains acceptable accuracy for identifying heavy hitters while dramatically reducing the computational burden, allowing the optimization process to scale with dataset size

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If a single-stage heavy hitter estimation process is used, then the process is simpler and faster, but the accuracy in identifying heavy hitters with varying frequency thresholds deteriorates

Engineering Contradiction:
Improveaccuracy of heavy hitter frequency estimationVSAvoidcomplexity of estimation process
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The estimation process is divided into two distinct stages: first stage identifies heavy hitters above a higher frequency threshold, while the second stage identifies additional heavy hitters at a lower threshold. This segmentation allows the system to efficiently handle items with different frequency characteristics, improving overall estimation accuracy

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system dynamically adjusts the frequency threshold between two stages of estimation. The first stage uses a higher threshold to quickly identify obvious heavy hitters, then the second stage lowers the threshold to capture additional heavy hitters that were missed. This dynamic threshold adjustment improves accuracy without requiring a single complex thresholding mechanism

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS10726007B2Building heavy hitter summary for query optimization
Publication Date: 2020.07.28 MICROSOFT TECHNOLOGY LICENSING LLC
  • US10726007B2 patent drawing
  • US10726007B2 patent drawing
  • US10726007B2 patent drawing

AI summary

Constructing a heavy hitter summary for query optimization. The heavy hitter summary is constructed by sampling each of multiple partitions of a dataset using a uniformed sampling rate. For each partition, performing a two-stage heavy hitter estimation process to determine whether an estimated frequency of a key of the sampled data units may be included in a partition-level heavy hitter summary. Constructing a partition-level heavy hitter summary for each partition of the dataset based on the keys determined via the two-stage process, and constructing a dataset-level heavy hitter summary based on the partition-level heavy hitter summary. The dataset-level heavy hitter summary may be used to optimize query trees.