Optimized Data Cube Generation via Query Pattern Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data cube systems for large-scale OLAP queries are inefficient due to the selection of dimensions and measures not aligning with actual query requirements, leading to suboptimal query handling and performance, especially in petabyte-scale datasets.

Innovation Solution

A method for automatically generating optimized data cubes by parsing and analyzing dimension and measure information from data queries, using knowledge graphs to identify relationships and segment dimensions and measures into communities, thereby generating optimized data cubes that align with incoming queries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If conventional data cube systems use pre-defined dimensions and measures, then data cube structure is stable and simple to manage, but query handling efficiency deteriorates because dimensions and measures do not align with actual query requirements

Engineering Contradiction:
Improvequery handling efficiencyVSAvoiddata cube generation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system performs preliminary analysis of query workloads before generating data cubes. By analyzing historical queries, dimension tables, and fact tables in advance, the system pre-determines the optimal dimensions and measures for data cube generation, ensuring alignment with actual query requirements while maintaining manageable complexity through automated analysis

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms by continuously monitoring query patterns and using this information to optimize data cube generation. The query analysis component feeds back into the dimension and measure selection process, allowing the system to adaptively improve query handling efficiency based on actual usage patterns

Inventive Principle:
Principle #23Feedback

2Reliability

If data cubes are generated to cover all possible dimensions and measures, then query hit rate improves, but storage space and computation time increase dramatically

Engineering Contradiction:
Improvequery hit rateVSAvoiddata cube generation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system extracts only the essential dimensions and measures that are actually needed for query processing. By analyzing query patterns and identifying the most frequently used dimensions and measures, the system extracts and prioritizes these elements for data cube generation, achieving high query hit rates without the overhead of including all possible dimensions and measures

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system applies partial action by generating data cubes for only the most critical dimension-measure combinations rather than all possible combinations. This selective approach focuses computational resources on the subsets of data that provide the greatest query coverage, reducing generation time while maintaining acceptable query hit rates

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If data cubes are generated manually with expert knowledge, then dimension and measure selection is accurate, but the process is time-consuming and difficult to adapt to changing query patterns

Engineering Contradiction:
Improvedimension and measure selection accuracyVSAvoidadaptability to changing query patterns
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The system performs self-service by automatically analyzing query patterns, dimension tables, and fact tables to determine optimal dimensions and measures without requiring manual expert intervention. The automated analysis components evaluate the data and query characteristics themselves, making the system both accurate and adaptable to changing patterns

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system implements dynamic adaptation by continuously monitoring query patterns and adjusting dimension and measure selection accordingly. As query patterns change over time, the system dynamically re-evaluates and updates the data cube generation parameters, maintaining accuracy without requiring manual reconfiguration

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20240265016A1Generation of optimized data cubes
Publication Date: 2024.08.08 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240265016A1 patent drawing
  • US20240265016A1 patent drawing
  • US20240265016A1 patent drawing

AI summary

Generation of optimized data cube(s) includes obtaining data queries, parsing the data queries and ascertaining dimension and measure information, including dimension tables and fact tables indicated in the data queries, analyzing the dimension and the measure information for relationships between the dimension tables and fact tables, and strengths of the relationships, segmenting dimensions and measures reflected in the dimension and the measure information, including the dimension tables and fact tables, into one or more communities, each community including at least one dimension table of the dimension tables and at least one fact table of the fact tables, and generating an optimized data cube for each community and having a respective dimension table for each of the at least one dimension table of the community and a respective fact table for each of the at least one fact table of the community.