Database Indexing and Query Optimization for Massive Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional data query methods, such as disk scanning and partial indexing, are inefficient for massive data analysis, leading to slow query speeds and high resource wastage, as they either read all data from the disk or rely on limited indexing, failing to utilize associated information between multiple indexes effectively.

Innovation Solution

A data storage and query method that stores data in a row and column structure, constructs comprehensive indexes for all columns, and determines a query mode based on statistical information to optimize data retrieval, allowing for efficient querying through index information and reducing unnecessary disk reads.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If disk scanning method is used to query data, then all data can be read from disk, but query speed is very slow and efficiency is poor

Engineering Contradiction:
Improvedata completenessVSAvoidquery speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies preliminary action by pre-building comprehensive indexes for all columns before query operations. When data is stored, the system immediately constructs index structures that map column values to row locations. During query execution, these pre-built indexes enable direct location lookup instead of scanning all data, dramatically improving query speed while maintaining data completeness.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If partial index method is used to speed up query, then query time is reduced, but acceleration effect is limited because only portion of columns are indexed

Engineering Contradiction:
Improvequery speedVSAvoidquery coverage
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent implements universality by creating comprehensive indexes that cover all columns in the dataset, rather than limiting indexing to only frequently queried columns. This multi-column indexing strategy ensures that any query condition on any column can be efficiently evaluated, providing universal query acceleration across diverse query patterns and improving both query speed and adaptability.

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

Solution Approach 2:

The patent merges multiple index structures into a unified comprehensive indexing system. Instead of maintaining separate partial indexes for different columns, the system combines index information from all columns into an integrated structure that can be leveraged by any query, maximizing the acceleration effect across all query operations.

Inventive Principle:
Principle #5Merging (Combining)

3Productivity

If multiple indexes are built for multiple columns, then query optimization is possible, but associated information between multiple indexes is not utilized effectively

Engineering Contradiction:
Improvequery optimizationVSAvoidindex management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent merges multiple column indexes into a unified comprehensive index structure that inherently captures associations between columns. This unified structure allows the system to simultaneously evaluate multiple query conditions and leverage relationships between different columns during a single query operation, improving optimization effectiveness while simplifying index management compared to maintaining separate partial indexes.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11449481B2Data storage and query method and device
Publication Date: 2022.09.20 CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
  • US11449481B2 patent drawing
  • US11449481B2 patent drawing
  • US11449481B2 patent drawing

AI summary

Data storage and query method and device are disclosed, which facilitate a quick acquisition of query results through index queries at subsequent stages by establishing indexes for columns of a table. Furthermore, by scanning data in the table to obtain statistical information of data in the columns, this facilitates using the statistical information of the data in the columns to perform cost estimation in subsequent queries, in an attempt to obtain a data query mode that has the least cost and the best performance, thus improving query efficiency.