# US 2023/0068831 A1 · Optimizing scans using query planning on batch data

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

- Number: US 2023/0068831 A1
- Document ID: US20230068831A1
- Status: Published application
- Kind: A1
- Application number: 17/412,106
- Filed: 2021-08-25
- Published: 2023-03-02
- Earliest claimed: 2021-08-25
- Assignees: Walmart Apollo, LLC
- Applicants: Walmart Apollo, LLC
- Inventors: Mridul Jain; Saigopal Thota; Rewati Mahendra Ovalekar; Sébastien Jean-Maurice Olivier Péhu; Saumya Agarwal; Sai Kiran Reddy Malikireddy; Gajendra Alias Nishad Kamat; Mitesh Sinha
- Web page: https://patentgrep.com/patent/US20230068831A1

## CPC

- G06F 16/2453: Query optimisation
- G06F 16/24532: {of parallel queries}
- G06F 16/211: {Schema design and management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system including one or more processors and one or more non-transitory computer-readable media storing computing instructions configured to run on the one or more processors and perform: bundling multiple registered queries of a dataset using a scheduling technique, wherein the dataset is homogenous in schema; running a single table scan of the dataset to process the multiple registered queries of the dataset in parallel; and generating a respective output responsive to each of the multiple registered queries. Other embodiments are disclosed.

## Claims

### Claim 1

A system comprising:
one or more processors; and
one or more non-transitory computer-readable media storing computing instructions configured to run on the one or more processors and perform:
bundling multiple registered queries of a dataset using a scheduling technique, wherein the dataset is homogenous in schema;
running a single table scan of the dataset to process the multiple registered queries of the dataset in parallel; and
generating a respective output responsive to each of the multiple registered queries.

### Claim 2 (depends on 1)

The system of claim 1, wherein running the single table scan further comprises, at each respective row of the dataset:
extracting attributes from the respective row of the dataset responsive to the multiple registered queries.

### Claim 3 (depends on 1)

The system of claim 1, wherein the computing instructions are further configured to perform:
defragmenting event records received in event streams from one or more producers by assigning user identifiers of users to the event records in a user domain object model; and
translating the event records into a non-relational (NoSQL) schema, wherein the NoSQL schema comprises dataset layers.

### Claim 4 (depends on 3)

The system of claim 3, wherein:
the customer domain object model combines the event records into a single state for serving in batch data or real-time.

### Claim 5 (depends on 3)

The system of claim 3, wherein defragmenting the event records further comprises:
identifying which respective records of the event records are associated with each respective user of the users using a set of rules for mapping in scalable representations, wherein each respective user of the users is identified by a respective user identifier of the user identifiers; and
converting the scalable representations to automated artifacts for the producers to provide data into a central representation.

### Claim 6 (depends on 3)

The system of claim 3, wherein translating the event records into the NoSQL schema comprises:
determining access patterns of data clients, wherein the dataset layers are based on the access patterns of the data clients.

### Claim 7 (depends on 6)

The system of claim 6, wherein translating the event records into the NoSQL schema further comprises:
generating, based on the access patterns, a first layer of the dataset layers comprising user profiles of the users and historical interactions of the users.

### Claim 8 (depends on 6)

The system of claim 6, wherein translating the event records into the NoSQL schema further comprises:
generating, based on the access patterns, a second layer of the dataset layers comprising intermediate states for a subset of queries of the access patterns that exceed a predetermined threshold; and
periodically updating the second layer as additional queries of the access patterns exceed the predetermined threshold.

### Claim 9 (depends on 6)

The system of claim 6, wherein the intermediate states comprise one or more of aggregations or transformations responsive to the subset of the queries.

### Claim 10 (depends on 6)

The system of claim 6, wherein translating the event records into the NoSQL schema comprises:
generating, based on the access patterns, a third layer of the dataset layers comprising transformed data specific to one or more of the data clients, wherein the transformed data comprises the event records from another one of the dataset layers.

### Claim 11

A method being implemented via execution of computing instructions configured to run on one or more processors and stored at one or more non-transitory computer-readable media, the method comprising:
bundling multiple registered queries of a dataset using a scheduling technique, wherein the dataset is homogenous in schema;
running a single table scan of the dataset to process the multiple registered queries of the dataset in parallel; and
generating a respective output responsive to each of the multiple registered queries.

### Claim 12 (depends on 11)

The method of claim 11, wherein running the single table scan further comprises, at each respective row of the dataset:
extracting attributes from the respective row of the dataset responsive to the multiple registered queries.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
defragmenting event records received in event streams from one or more producers by assigning user identifiers of users to the event records in a user domain object model; and
translating the event records into a non-relational (NoSQL) schema, wherein the NoSQL schema comprises dataset layers.

### Claim 14 (depends on 11)

The method of claim 11, wherein:
the customer domain object model combines the event records into a single state for serving in batch data or real-time.

### Claim 15 (depends on 13)

The method of claim 13, wherein defragmenting the event records further comprises:
identifying which respective records of the event records are associated with each respective user of the users using a set of rules for mapping in scalable representations, wherein each respective user of the users is identified by a respective user identifier of the user identifiers; and
converting the scalable representations to automated artifacts for the producers to provide data into a central representation.

### Claim 16 (depends on 13)

The method of claim 13, wherein translating the event records into the NoSQL schema comprises:
determining access patterns of data clients, wherein the dataset layers are based on the access patterns of the data clients.

### Claim 17 (depends on 16)

The method of claim 16, wherein translating the event records into the NoSQL schema further comprises:
generating, based on the access patterns, a first layer of the dataset layers comprising user profiles of the users and historical interactions of the users.

### Claim 18 (depends on 16)

The method of claim 16, wherein translating the event records into the NoSQL schema further comprises:
generating, based on the access patterns, a second layer of the dataset layers comprising intermediate states for a subset of queries of the access patterns that exceed a predetermined threshold; and
periodically updating the second layer as additional queries of the access patterns exceed the predetermined threshold.

### Claim 19 (depends on 16)

The method of claim 16, wherein the intermediate states comprise one or more of aggregations or transformations responsive to the subset of the queries.

### Claim 20 (depends on 16)

The method of claim 16, wherein translating the event records into the NoSQL schema comprises:
generating, based on the access patterns, a third layer of the dataset layers comprising transformed data specific to one or more of the data clients, wherein the transformed data comprises the event records from another one of the dataset layers.
