Real-Time True-False Indexing for In-Memory Structured Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional query processors struggle with processing large volumes of data in memory, requiring significant resources and time to execute queries, and often limit dataset size or complexity to manage memory usage.

Innovation Solution

An in-memory query processor generates and processes structured queries by creating true and false indices within hierarchical datasets, reducing the need for repetitive scanning and memoizing results, thus optimizing memory usage and query execution time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional query processors scan large in-memory datasets, then query results can be obtained, but processing time increases significantly and memory resources are heavily consumed

Engineering Contradiction:
Improvequery result accuracyVSAvoidquery processing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-computing and storing aggregate statistics (count, sum, min, max, distinct count) for each column during data loading. These pre-computed statistics are stored in memory and used to quickly evaluate query conditions without scanning entire tables, thereby reducing query processing time while maintaining result accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces statistical aggregates as intermediary structures between the raw data and query processing. These aggregates serve as mediators that enable quick evaluation of query conditions (e.g., filtering, grouping, aggregation) without directly accessing or scanning the underlying large datasets, thus reducing processing time while preserving query result correctness.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Quantity of substance

If conventional query processors handle large datasets, then comprehensive data analysis is possible, but memory resources are excessively consumed

Engineering Contradiction:
Improvedataset sizeVSAvoidmemory resource consumption
Core Design Contradiction:
Quantity of substanceVSUse of energy by moving object

Solution Approach 1:

The system extracts only the essential statistical information (count, sum, min, max, distinct count) from the large datasets and stores these compact representations in memory. This extraction allows the system to handle large datasets by retaining only the minimal necessary data for query processing, dramatically reducing memory consumption while preserving analytical capabilities.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent transforms the data representation from storing complete raw records to storing aggregated statistical parameters (count, sum, min, max, distinct count). This parameter transformation changes the memory footprint from proportional to dataset size to proportional to the number of columns and tables, enabling efficient handling of large datasets with limited memory resources.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If conventional tools access individual records, then specific field values can be retrieved, but filtering and summarization operations are difficult

Engineering Contradiction:
Improveindividual record accessVSAvoidfiltering and summarization capability
Core Design Contradiction:
Ease of operationVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal statistical aggregate structure that serves multiple functions: it enables individual record access through the underlying data, supports filtering operations using pre-computed statistics, enables summarization through aggregate functions, and facilitates grouping operations. This multi-functional design allows the same data structure to handle diverse query types without requiring separate processing mechanisms.

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

Data Source

PatentUS20250342141A1Real-time indexing of in-memory datasets based on structured queries
Publication Date: 2025.11.06 NETFLIX INC
  • US20250342141A1 patent drawing
  • US20250342141A1 patent drawing
  • US20250342141A1 patent drawing

AI summary

In various embodiments, a computer-implemented method comprises receiving a structured query for an in-memory dataset, identifying, based on the structured query, a plurality of tables included in the in-memory dataset, generating, for each table in the plurality of tables, a first index of records in the table that is associated with at least one field value responsive to the structured query, and a second index of records in the table that is not associated with at least one field value responsive to the structured query, and executing the structured query by processing indices in one or more of the tables to identify a list of records containing field values that are responsive to the structured query.