# US 2022/0284021 A1 · Methods and apparatus for efficiently scaling result caching

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284021 A1
- Document ID: US20220284021A1
- Status: Published application
- Kind: A1
- Application number: 17/405,988
- Filed: 2021-08-18
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Chaossearch, Inc.
- Applicants: Chaossearch, Inc.
- Inventors: Thomas HAZEL; David NOBLET; Rudresh TRIVEDI
- Web page: https://patentgrep.com/patent/US20220284021A1

## CPC

- G06F 16/24539: {using cached or materialised query results}
- G06F 16/2228: {Indexing structures}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus, methods, and computer-readable media facilitating efficiently scaling result caching are disclosed herein. An example method includes generating an index based on a plurality of source data objects in an object storage system. The generated index comprises a manifest, at least one symbol file, and at least one locality file. The example method also includes receiving a search query for the plurality of source data objects stored in the object storage system, and querying the generated index based on the search query and a manifest root file of the manifest. Additionally, the example method includes generating a materialized view of a result set of the search query based on the querying of the generated index. The example method also includes storing a cached manifest file at the generated index, the cached manifest file mapping the search query to a segment of the generated index based on the result set.

## Claims

### Claim 1

A computer-implemented method for caching in object storage, comprising:
generating an index based on a plurality of source data objects in an object storage system, the generated index comprising a manifest, at least one symbol file, and at least one locality file, the manifest comprising a tree data structure of a manifest root file with branch-leaf manifest files, the manifest root file specifying statistical values about at least a first branch-leaf manifest file based on the at least one symbol file and the at least one locality file associated with the first branch-leaf manifest file;
receiving a search query for the plurality of source data objects stored in the object storage system;
querying the generated index based on the search query and the manifest root file of the manifest;
generating a materialized view of a result set of the search query based on the querying of the generated index; and
storing a cached manifest file at the generated index, the cached manifest file mapping the search query to a segment of the generated index based on the result set.

### Claim 2 (depends on 1)

The method of claim 1, wherein querying the generated index based on the search query further comprises:
selecting a subset of branch-leaf manifest files based on the statistical values of the manifest root file; and
using one or more locality files and one or more symbol files associated with the selected subset of branch-leaf manifest files to return the result set based on a location of symbols in the source data objects.

### Claim 3 (depends on 2)

The method of claim 2, wherein storing the cached manifest file at the generated index further comprises:
generating a second branch-leaf manifest file specifying statistical values associated with the selected subset of the branch-leaf manifest files; and
modifying the manifest root file of the generated index to include the second branch-leaf manifest file.

### Claim 4 (depends on 3)

The method of claim 3, wherein the second branch-leaf manifest file links the search query to the selected subset of the branch-leaf manifest files of the generated index.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
receiving a second search query for the plurality of source data objects stored in the object storage system;
querying the generated index based on the second search query in a sequence order comprising the cached manifest file and the branch-leaf manifest files of the manifest root file; and
generating a second materialized view of a second result set of the second search query based on the querying of the generated index in the sequence order.

### Claim 6 (depends on 5)

The method of claim 5, wherein querying the generated index based on the search query in the sequence order further comprises:
resolving one or more aspects of the second search query based on parsing the cached manifest file of the manifest root file; and
resolving any remaining unresolved aspects of the second search query based on parsing the branch-leaf manifest files of the manifest root file.

### Claim 7 (depends on 6)

The method of claim 6, wherein resolving an aspect of the second search query comprises:
selecting a second subset of branch-leaf manifest files based on the statistical values of the manifest root file; and
using one or more locality files and one or more symbol files associated with the selected second subset of branch-leaf manifest files to return the second result set based on a location of symbols in the source data objects.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
storing a second cached manifest file at the generated index, the second cached manifest file mapping the second search query to a second segment of the generated index based on the second result set.

### Claim 9 (depends on 1)

The method of claim 1, wherein the search query comprises one of a relational query and a text search.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
storing the cached manifest file in persistent storage.

### Claim 11

A computer apparatus for caching in object storage, comprising:
a memory; and
at least one processor coupled to the memory and configured to:
generate an index based on a plurality of source data objects in an object storage system, the generated index comprising a manifest, at least one symbol file, and at least one locality file, the manifest comprising a tree data structure of a manifest root file with branch-leaf manifest files, the manifest root file specifying statistical values about at least a first branch-leaf manifest file based on the at least one symbol file and the at least one locality file associated with the first branch-leaf manifest file;
receive a search query for the plurality of source data objects stored in the object storage system;
query the generated index based on the search query and the manifest root file of the manifest;
generate a materialized view of a result set of the search query based on the querying of the generated index; and
store a cached manifest file at the generated index, the cached manifest file mapping the search query to a segment of the generated index based on the result set.

### Claim 12 (depends on 11)

The computer apparatus of claim 11, wherein the at least one processor is configured to query the generated index based on the search query by:
selecting a subset of branch-leaf manifest files based on the statistical values of the manifest root file; and
using one or more locality files and one or more symbol files associated with the selected subset of branch-leaf manifest files to return the result set based on a location of symbols in the source data objects.

### Claim 13 (depends on 12)

The computer apparatus of claim 12, wherein the at least one processor is configured to store the cached manifest file at the generated index by:
generating a second branch-leaf manifest file specifying statistical values associated with the selected subset of the branch-leaf manifest files; and
modifying the manifest root file of the generated index to include the second branch-leaf manifest file.

### Claim 14 (depends on 11)

The computer apparatus of claim 11, wherein the at least one processor is further configured to:
receive a second search query for the plurality of source data objects stored in the object storage system;
query the generated index based on the second search query in a sequence order comprising the cached manifest file and the branch-leaf manifest files of the manifest root file; and
generate a second materialized view of a second result set of the second search query based on the querying of the generated index in the sequence order.

### Claim 15 (depends on 14)

The computer apparatus of claim 14, wherein the at least one processor is configured to query the generated index based on the search query in the sequence order by:
resolving one or more aspects of the second search query based on parsing the cached manifest file of the manifest root file; and
resolving any remaining unresolved aspects of the second search query based on parsing the branch-leaf manifest files of the manifest root file.

### Claim 16 (depends on 15)

The computer apparatus of claim 15, wherein the at least one processor is configured to resolve an aspect of the second search query by:
selecting a second subset of branch-leaf manifest files based on the statistical values of the manifest root file; and
using one or more locality files and one or more symbol files associated with the selected second subset of branch-leaf manifest files to return the second result set based on a location of symbols in the source data objects.

### Claim 17 (depends on 14)

The computer apparatus of claim 14, wherein the at least one processor is further configured to:
store a second cached manifest file at the generated index, the second cached manifest file mapping the second search query to a second segment of the generated index based on the second result set.

### Claim 18 (depends on 11)

The computer apparatus of claim 11, wherein the at least one processor is further configured to:
store the cached manifest file in persistent storage.

### Claim 19

A non-transitory computer-readable medium storing computer executable code for caching in object storage, comprising code to:
generate an index based on a plurality of source data objects in an object storage system, the generated index comprising a manifest, at least one symbol file, and at least one locality file, the manifest comprising a tree data structure of a manifest root file with branch-leaf manifest files, the manifest root file specifying statistical values about at least a first branch-leaf manifest file based on the at least one symbol file and the at least one locality file associated with the first branch-leaf manifest file;
receive a search query for the plurality of source data objects stored in the object storage system;
query the generated index based on the search query and the manifest root file of the manifest;
generate a materialized view of a result set of the search query based on the querying of the generated index; and
store a cached manifest file at the generated index, the cached manifest file mapping the search query to a segment of the generated index based on the result set.
