Partition-Local Value Identifier Mapping for Faster GroupBy Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing database systems face inefficiencies in processing queries across partitioned tables due to mismatched value identifiers (VIDs) across fragments, leading to increased computational resources and time, especially when grouping data values.

Innovation Solution

A query processing system generates partition value identifiers (PartVIDs) that map fragment-local VIDs to partition-local identifiers, maintaining a mapping across fragments to facilitate efficient data grouping without reading actual data values.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If fragment-local value identifiers are used in partitioned tables, then data storage flexibility is improved, but query processing efficiency deteriorates due to mismatched identifiers across fragments

Engineering Contradiction:
Improvedata storage flexibilityVSAvoidquery processing efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent introduces partition value identifiers (PartVIDs) as an intermediary layer between fragment-local VIDs and query processing operations. The mapping table stores PartVIDs that correspond to fragment-local VIDs, allowing queries to group data by PartVID without directly handling mismatched fragment-local identifiers. This intermediary mapping mechanism resolves the contradiction by enabling efficient query processing while preserving the flexibility of fragment-local storage.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If actual data values are read for grouping operations, then grouping accuracy is improved, but computational resources and processing time increase

Engineering Contradiction:
Improvegrouping accuracyVSAvoidcomputational resources
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent extracts only the necessary identifier information (PartVIDs) from the partitioned table for grouping operations, rather than reading actual data values. The mapping table provides direct access to PartVIDs that represent the grouping keys, allowing the system to perform accurate grouping based on identifiers alone. This extraction approach maintains grouping accuracy while significantly reducing computational resource consumption by avoiding full data value reads.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS12468735B2Partition-local partition value identifier grouping
Publication Date: 2025.11.11 SAP SE
  • US12468735B2 patent drawing
  • US12468735B2 patent drawing
  • US12468735B2 patent drawing

AI summary

A method for executing a query may include generating a partition value identifier for a partitioned table. The partitioned table may include a main fragment including a main dictionary storing a first value and a main value identifier corresponding to the first value and a delta fragment including a delta dictionary storing a second value and a delta value identifier corresponding to the second value. The partition value identifier may be set based at least in part on the first value and the second value. The generated partition value identifier and a corresponding one of the main value identifier and the delta value identified may be maintained as part of a mapping. A query to group data stored in the partitioned table may be received. The query may be executed by at least using the mapping.