Database Query Index Leap Skipping for Non-Relational Join Performance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Non-relational databases face limitations in index usage, leading to low query efficiency due to unnecessary scanning of index entries and poor performance in multi-table join operations, even with indexes created for multiple tables.

Innovation Solution

A method for processing database queries by receiving a query for a group of data records with indexes created on specific fields, determining if the query satisfies a predetermined condition, and skipping unnecessary operations based on the indexes to improve query efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If indexes are created on data tables in non-relational databases, then query efficiency should be improved, but query efficiency remains low due to unnecessary scanning of index entries

Engineering Contradiction:
Improvequery efficiencyVSAvoidtime for scanning index entries
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent applies the skipping principle by enabling the database query processor to skip unnecessary index entry scans. When a query is executed, the system determines which index entries can be skipped based on query conditions and index structure, thereby reducing the time spent scanning index entries while maintaining query efficiency.

Inventive Principle:
Principle #21Skipping (Rushing through)

2Productivity

If indexes are created on multiple tables, then multi-table join operations should be optimized, but performance in multi-table join operations remains poor

Engineering Contradiction:
Improvemulti-table join performanceVSAvoidtime for multi-table join operations
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-determining which index entries can be skipped before executing multi-table join operations. The query processor analyzes the query conditions and index structures in advance to identify skipable entries, thereby optimizing multi-table join performance by avoiding unnecessary scanning operations.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If all index entries are scanned to ensure complete query results, then query accuracy is maintained, but query execution time increases

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery execution time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies feedback by implementing a mechanism where the query processor continuously monitors and adjusts which index entries to scan based on query conditions and index structure. This feedback loop ensures that only necessary index entries are scanned, maintaining query result accuracy while reducing execution time by avoiding unnecessary scans.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11762859B2Database query with index leap usage
Publication Date: 2023.09.19 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11762859B2 patent drawing
  • US11762859B2 patent drawing
  • US11762859B2 patent drawing

AI summary

Embodiments of the present disclosure relate to an approach for database query. According to the approach, a query for a group of data records is received. At least one index is created on at least one field of the data records and comprises index entries for storing and sorting respective values of the at least one field of the data records. It is determined if the query satisfies a predetermined condition. In response to the query satisfying the predetermined condition, a result of the query is determined by skipping at least a part of operations required by the query based on the at least one index.