Constraint Data Statistics Objects for Database Query Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database management systems (DBMS) face challenges in utilizing dynamic data integrity constraints due to their high cost of discovery and maintenance, which limits their application in improving query processing time and reducing memory consumption.

Innovation Solution

The use of traditional data statistics as dynamic data integrity constraints, specifically through constraint data statistics objects that imply and manage implied dynamic data integrity constraints, allowing for efficient creation and maintenance, and enabling dynamic partition pruning and query optimization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If dynamic data integrity constraints are used to improve query processing time and reduce memory consumption, then query performance is improved, but the cost of discovery and maintenance increases

Engineering Contradiction:
Improvequery processing timeVSAvoidmaintenance cost
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent combines traditional data statistics with dynamic data integrity constraints into a unified framework. The system merges the statistical information gathering mechanisms with the constraint validation and enforcement systems, allowing the DBMS to leverage existing infrastructure for maintaining both statistics and constraints, thereby reducing overall maintenance overhead while improving query performance

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent makes data statistics serve multiple functions: they continue to provide optimization information for query planning while simultaneously acting as dynamic data integrity constraints. This multi-functionality eliminates the need for separate constraint maintenance systems, reducing complexity and maintenance costs while maintaining the performance benefits of dynamic constraints

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

2Quantity of substance

If dynamic data integrity constraints are used to enable dynamic partition pruning, then memory consumption is reduced, but the complexity of constraint management increases

Engineering Contradiction:
Improvememory consumptionVSAvoidconstraint management complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The system implements self-service mechanisms where the DBMS automatically discovers, validates, and maintains dynamic data integrity constraints without requiring manual intervention. The constraint management system monitors data changes, updates statistics automatically, and adjusts partition pruning strategies dynamically, reducing the operational complexity of constraint management while enabling effective memory optimization

Inventive Principle:
Principle #25Self-service

3Device complexity

If traditional data statistics are repurposed as dynamic data integrity constraints, then maintenance cost is reduced, but the precision of data state description may be compromised

Engineering Contradiction:
Improvemaintenance costVSAvoiddata state description precision
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent transforms static data statistics into dynamic constraints that can adapt to changing data states. The system continuously updates constraint definitions based on current statistics, allowing the constraints to reflect the actual data distribution and relationships at any given moment. This dynamic adaptation maintains precision while leveraging the lower maintenance cost of statistics-based approaches

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11734258B2Constraint data statistics
Publication Date: 2023.08.22 SAP SE
  • US11734258B2 patent drawing
  • US11734258B2 patent drawing
  • US11734258B2 patent drawing

AI summary

Disclosed herein are system, method, and computer program product embodiments for using a data statistic as a dynamic data integrity constraint. An embodiment operates by defining a data statistic for a column or a set of columns of a partition of a plurality of partitions of a database table. The embodiment creates a constraint data statistics object based on the data statistic. The embodiment receives a query for the database table. The embodiment determines the constraint data statistics object is consistent with a data state of the partition. The embodiment derives an implied constraint based on the constraint data statistics object. The embodiment processes the query for the partition based on the implied constraint.