Pageable Hash Index for Memory-Efficient Document Retrieval

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database management systems face challenges in optimizing performance for complex queries and transactions due to the complexity of data storage and retrieval, particularly in handling multidimensional analysis and transaction processing, which can lead to increased processing times and memory constraints.

Innovation Solution

A pageable hash index is implemented for a document store, allowing selective loading of data from disk based on query requirements, enabling efficient data retrieval and updates without full data loading, and supporting operations like insert, update, and delete with minimal resource usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If the entire hash map index is loaded into memory for transaction execution, then query processing speed is improved, but memory consumption increases and memory constraints are violated

Engineering Contradiction:
Improvequery processing speedVSAvoidmemory consumption
Core Design Contradiction:
SpeedVSQuantity of substance

Solution Approach 1:

The hash map index is divided into multiple pages, each containing a subset of hash entries. The system loads only the specific page containing the required document into memory, rather than loading the entire index. This segmentation allows the system to maintain fast query processing for the accessed data while keeping overall memory consumption low by unloading unused pages.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Instead of loading the complete hash map index into memory, the system performs a partial action by loading only the necessary portion (specific page) required for the current transaction. This partial loading approach satisfies the immediate query processing needs while avoiding the excessive memory consumption that would result from loading the entire index.

Inventive Principle:
Principle #16Partial or excessive action

2Speed

If the entire document array is loaded into memory for transaction execution, then data retrieval speed is improved, but system performance deteriorates due to memory constraints

Engineering Contradiction:
Improvedata retrieval speedVSAvoidsystem performance
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The document array is segmented into pages, and the system loads only the specific page containing the target document for transaction processing. This segmentation enables fast data retrieval for the accessed document while preserving system performance by avoiding the memory constraints that would arise from loading the entire document array into memory.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs a partial action by loading only the necessary document page into memory rather than the entire document array. This partial loading strategy achieves the required data retrieval speed for the specific transaction while maintaining overall system performance by preventing memory exhaustion that would occur with full array loading.

Inventive Principle:
Principle #16Partial or excessive action

3Adaptability or versatility

If documents are stored in a linked list structure, then data organization flexibility is improved, but data retrieval complexity increases

Engineering Contradiction:
Improvedata organization flexibilityVSAvoiddata retrieval complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

A hash map index is introduced as an intermediary structure between the linked list document storage and the query processing logic. The hash map provides fast O(1) average-case lookup to locate documents in the linked list, while the linked list maintains its flexibility for data organization. This intermediary hash map structure resolves the complexity of traversing linked lists during retrieval operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250272273A1Pageable HASH index for document store
Publication Date: 2025.08.28 SAP SE
  • US20250272273A1 patent drawing
  • US20250272273A1 patent drawing
  • US20250272273A1 patent drawing

AI summary

A method, a system, and a computer program product for generating a pageable hash index for a document store. A hash map index for data stored on disk using a document array is generated. The hash map index includes a plurality of hash values with each hash value identifying a document stored at a predetermined location in the document array. A transaction for executing using a first document stored in the document array is received. Using the generated hash map index, a location of the first document stored in the document array is identified. At least a portion of a first hash value of the hash map index corresponding to the first document is loaded into a memory location without loading the remaining hashes of the hash map index. Based on the loaded portion of the first hash value, the received transaction is executed.