Database Index Management Using Version Tags

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional index management methods in databases require series of operations on each index to determine whether they should be cleared, leading to reduced database performance, especially in scenarios with large data volumes and frequent data updates.

Innovation Solution

The proposed solution involves using index tags and data tags to identify stored versions of indexes and data, allowing for efficient determination of operations associated with the target index, thereby reducing the need for extensive operations and improving performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional index management methods are used to determine whether indexes should be cleared, then index accuracy is maintained, but database performance deteriorates due to extensive operations required

Engineering Contradiction:
Improveindex accuracyVSAvoiddatabase performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies preliminary action by pre-establishing version tags for both indexes and data before any updates occur. When data is updated, a data version tag is generated in advance, and when an index is created or updated, an index version tag is generated. These pre-established tags enable rapid comparison later to determine index validity, eliminating the need for complex post-update analysis and thus maintaining index accuracy while preserving database performance.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses version tags as simplified copies or representations of the actual index-data correspondence state. Instead of performing extensive operations to verify index accuracy, the system compares these lightweight tag copies (version numbers or identifiers) to determine whether an index remains valid. This copying approach maintains reliability by accurately tracking version relationships while dramatically reducing the computational overhead that would otherwise degrade performance.

Inventive Principle:
Principle #26Copying

2Reliability

If extensive operations are performed on each index to determine cleanup necessity, then index validity is ensured, but time overhead increases

Engineering Contradiction:
Improveindex validityVSAvoidtime overhead
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent transforms the complex problem of index validity verification into a simple parameter comparison task. By assigning version parameters (tags) to both data and indexes, the system changes the verification process from evaluating multiple operational factors to comparing two version numbers. This parameter transformation ensures index validity is accurately determined while minimizing time overhead, as version comparison is a constant-time operation regardless of data or index size.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11308060B2Method, apparatus, device and storage medium for managing index
Publication Date: 2022.04.19 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US11308060B2 patent drawing
  • US11308060B2 patent drawing
  • US11308060B2 patent drawing

AI summary

Embodiments of the present disclosure relate to a method, apparatus, device and computer readable storage medium for managing an index are provided. The method for managing an index may include: determining a target index for target data stored in a database, the target index having a corresponding index tag for identifying a stored version of the target index. The method may further include acquiring, based on the target index, the target data stored in the database, the target data having a corresponding data tag for identifying a stored version of the target data. The method may further include determining, in response to the index tag not matching the data tag, an operation associated with the target index.