Checksum-Based Data Structure Update Monitoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In database management systems, especially in parallel transactions, maintaining efficient tracking of updates in data structures is challenging due to the need for significant memory usage for primary keys and the complexity of managing temporary quantity assignments (TQAs) across multiple transactions, which can lead to performance issues and increased resource consumption.

Innovation Solution

The implementation of a system that uses checksums derived from sub-keys to track updates in data structures without relying on database locks, employing two data structures: one for storing objects and another for maintaining counters that monitor updates, allowing for efficient tracking of objects across multiple transactions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If primary keys are used to uniquely identify records in a database, then record identification accuracy is improved, but memory consumption increases significantly

Engineering Contradiction:
Improverecord identification accuracyVSAvoidmemory consumption
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The primary key is segmented into two parts: a compact transaction identifier stored in a counter data structure, and a product location identifier stored in the main data structure. This segmentation allows the system to use smaller, more memory-efficient structures while maintaining the ability to uniquely identify records through the combination of these segments.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system introduces a new dimensional approach by using a counter data structure that tracks update states independently from the main data structure. Instead of relying solely on large primary keys stored with each record, the system adds a temporal/dimensional layer of tracking through counters that monitor the state of data structures across transactions, enabling identification without duplicating full primary key information.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Reliability

If database locks are used to manage parallel transactions, then transaction consistency is improved, but system performance and throughput deteriorate

Engineering Contradiction:
Improvetransaction consistencyVSAvoidsystem performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The counter data structure serves itself by automatically tracking updates to the main data structure. When records are added, modified, or deleted in the main data structure, the corresponding counters are automatically updated without requiring external lock management or coordination mechanisms. This self-updating mechanism maintains consistency while avoiding the performance overhead of traditional locking.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system implements feedback through counters that continuously monitor and reflect the state of the main data structure. These counters provide real-time information about data structure updates, enabling the system to detect and respond to changes without requiring blocking locks. The feedback mechanism ensures transaction consistency by allowing parallel transactions to coordinate through shared counter information rather than through mutual exclusion.

Inventive Principle:
Principle #23Feedback

3Measurement precision

If temporary quantity assignments are tracked across multiple transactions, then inventory accuracy is improved, but data structure complexity increases

Engineering Contradiction:
Improveinventory accuracyVSAvoiddata structure complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system merges the tracking of temporary quantity assignments with the existing counter data structure. Instead of maintaining separate complex data structures for TQA tracking, the counters are integrated with the main data structure, allowing inventory accuracy to be maintained through a unified, simpler architectural approach.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The counter data structure is designed to be universal, serving multiple functions: tracking primary key updates, monitoring temporary quantity assignments, and maintaining inventory accuracy. This multi-functionality eliminates the need for separate specialized data structures, reducing overall system complexity while maintaining precise inventory tracking across multiple transactions.

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

Data Source

PatentUS8781918B2Monitoring updates involving data structures accessed in parallel transactions
Publication Date: 2014.07.15 SAP SE
  • US8781918B2 patent drawing
  • US8781918B2 patent drawing
  • US8781918B2 patent drawing

AI summary

The embodiments described herein provide techniques for monitoring updates involving data structures accessed in parallel transactions. In an example, objects may be stored in one of the data structures and such objects that may be accessed in multiple, parallel transactions. Counters are maintained in another data structure to track the stored objects. In an illustrative embodiment, this counter is based on a checksum that is derived from a sub key that uniquely identifies an object within a group of objects.