B+ Tree Non-Leaf Node Caching for SQL Index Maintenance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The performance of SQL operations in relational databases is hindered by the increasing number of indexes, leading to higher index maintenance costs and resource consumption, particularly when traversing from the root to leaf nodes in tree structures during operations like insertion, search, and deletion.

Innovation Solution

A method and apparatus for performing operations in a tree structure, specifically a B+ tree, where non-leaf nodes are utilized to cache records and maintain keys in ascending order, reducing the need to traverse from the root to leaf nodes, thereby minimizing index maintenance costs and resource consumption.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If indexes are increased to improve SQL query performance, then data retrieval efficiency is improved, but index maintenance cost and resource consumption increase

Engineering Contradiction:
ImproveSQL query performanceVSAvoidindex maintenance cost
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent segments the index structure into multiple levels (root node, intermediate nodes, and leaf nodes), allowing operations to be performed on specific segments rather than the entire index. This segmentation enables parallel processing and reduces the scope of maintenance operations, thereby improving query performance while reducing maintenance overhead.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a hierarchical dimension to the index structure by organizing indexes into multiple levels. This dimensional change allows the system to perform operations more efficiently by operating on smaller subsets of the index at each level, reducing the overall maintenance cost while maintaining high retrieval performance.

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

2Reliability

If tree structure traversal from root to leaf nodes is performed for each operation, then data integrity is maintained, but operation time and resource consumption increase

Engineering Contradiction:
Improvedata integrityVSAvoidoperation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary actions by pre-organizing data into a hierarchical tree structure with root, intermediate, and leaf nodes. This preliminary organization allows operations to start from the appropriate level rather than always traversing from the root, significantly reducing operation time while maintaining data integrity through the structured hierarchy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces dynamic operation paths in the tree structure, allowing operations to adaptively start from different levels based on the specific operation requirements. This dynamic approach maintains data integrity through the hierarchical structure while optimizing operation time by avoiding unnecessary traversals from the root node.

Inventive Principle:
Principle #15Dynamics

3Quantity of substance

If non-leaf nodes are used for caching records, then memory utilization is improved, but tree structure complexity increases

Engineering Contradiction:
Improvememory utilizationVSAvoidtree structure complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent makes non-leaf nodes multi-functional by enabling them to serve both as structural intermediaries for maintaining the tree hierarchy and as caching storage for records. This universality improves memory utilization without requiring separate caching structures, and the hierarchical organization naturally manages the complexity through well-defined node roles and operations.

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

Data Source

PatentUS20240045852A1Performing an operation in a tree structure
Publication Date: 2024.02.08 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240045852A1 patent drawing
  • US20240045852A1 patent drawing
  • US20240045852A1 patent drawing

AI summary

A computer-implemented method for performing an operation in a tree structure is provided according to embodiments of the present disclosure. In the computer-implemented method, an operation to be performed in a tree structure may be received. The tree structure may comprise a plurality of non-leaf nodes and a plurality of leaf nodes. The operation may be associated with a record comprising a pair of key and value. One of the non-leaf nodes may be determined based on the key of the record. Then, the operation may be performed in the determined non-leaf node.