Metadata Search via Partial N-Gram Indexing for Large Tables

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Processing searches in very large tables is challenging due to the significant time and computing resources required to scan the entire table, leading to slow and resource-intensive search operations.

Innovation Solution

Implementing a N-Gram index that allows for faster search results by creating an index that includes partial N-Gram components and utilizing recent log data, along with techniques for building and efficiently searching an index store.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a full table scan is performed to ensure complete search coverage, then search accuracy is improved, but search speed and resource efficiency deteriorate

Engineering Contradiction:
Improvesearch accuracyVSAvoidsearch speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent segments the large table into multiple partitions or blocks, and creates separate indexes for each partition. This allows the search to only scan relevant partitions rather than the entire table, maintaining search accuracy while significantly improving search speed by reducing the scanned data scope.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an index structure as an intermediary between the search query and the full table data. The index contains pre-computed N-gram signatures that enable rapid filtering of candidate records before performing full text matching, thus achieving both high search accuracy and fast search performance.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If traditional indexing methods are used to improve search speed, then search efficiency is improved, but memory usage and index building complexity worsen

Engineering Contradiction:
Improvesearch efficiencyVSAvoidindex building complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent transforms the full text data into N-gram signatures with a specific parameter (N-gram size and step), creating a compressed representation that reduces index size and simplifies the indexing process. This parameter-based transformation enables efficient search while reducing the complexity of index construction and management.

Inventive Principle:
Principle #35Parameter changes

3Loss of time

If N-gram indexing is implemented to reduce search time, then search speed is improved, but index construction time and computational resources worsen

Engineering Contradiction:
Improvesearch timeVSAvoidindex construction time
Core Design Contradiction:
Loss of timeVSDuration of action of moving object

Solution Approach 1:

The patent performs preliminary N-gram signature computation and stores these signatures in the index structure during data ingestion or periodic updates. This preliminary action ensures that when search queries arrive, the N-gram matching can be performed rapidly without requiring real-time computation, thus reducing search time while distributing the computational burden over time.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12411850B2Metadata search via N-gram index
Publication Date: 2025.09.09 SNOWFLAKE INC
  • US12411850B2 patent drawing
  • US12411850B2 patent drawing
  • US12411850B2 patent drawing

AI summary

As described herein, a N-Gram index may be created and the search may be conducted using the index, which will lead to faster search results. The N-Gram index may also include partial N-Gram components to capture more relevant data. Moreover, as described herein, the search may also take into account recent log data that has not yet been indexed. Techniques for building an index store using log data and efficiently searching the index store and log data to process search requests are described herein.