# US 2026/0087013 A1 · Estimating Cost of Query Execution on a Set of Data Accessible to a Computing System

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

- Number: US 2026/0087013 A1
- Document ID: US20260087013A1
- Status: Published application
- Kind: A1
- Application number: 18/898,201
- Filed: 2024-09-26
- Published: 2026-03-26
- Earliest claimed: 2024-09-26
- Assignees: CrowdStrike, Inc.
- Applicants: Crowdstrike, Inc.
- Inventors: Hazim AVDAL
- Web page: https://patentgrep.com/patent/US20260087013A1

## CPC

- G06F 16/24545: {Selectivity estimation or determination}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Estimating a cost of executing a query on a set of data involves executing logic to: estimate a size of each datum in the set of data; receive a query specifying a value for a first datum and a plurality of additional datum in the set of data associated with the first datum, and a maximum number of first datum to be retrieved from the set of data that have the specified value; estimate a cost of executing the query based on the maximum number of first datum to be retrieved from the set of data that have the specified value, the plurality of additional datum associated with the first datum, and the estimated size of the first datum and each of the additional datum associated with the first datum; and execute the query on the set of data responsive to the estimated cost.

## Claims

### Claim 1

A computer-implemented method performed by a system having at least a processor and a memory therein to execute instructions for estimating a cost of querying a set of data maintained in an electronic data store accessible to the system, the set of data having a varying plurality of records each comprising a plurality of datum at least one of which varies in size, the method comprising:
executing logic to continually or repeatedly estimate a current shape of the set of data maintained in the electronic data store, including executing logic to estimate a current size of each of the plurality of datum in the plurality of records in the set of data;
receiving via an interface of the system a query specifying: a value for a first datum in the plurality of records in the set of data, a selection of an additional one or more of the plurality of datum in the plurality of records in the set of data, and a maximum number of first datum to be retrieved from the plurality of records in the set of data that have a value that matches the specified value for the first datum;
executing logic to estimate a cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set the data; and
executing the query on the set of data responsive to the estimated cost of executing the query.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein executing logic to estimate the current size of each of the plurality of datum in the plurality of records in the set of data comprises executing logic to estimate the current size of each of the plurality of datum across a plurality of sample records in the set of data.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein executing logic to estimate the current size of each of the plurality of datum across the plurality of sample records in the set of data comprises executing logic to estimate the current size of each of the plurality of datum across a plurality of uniformly distributed and randomly chosen sample records in the set of data.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein executing logic to estimate the current size of each of the plurality of datum across the plurality of sample records in the set of data comprises executing logic to estimate one of a mean, a median, and a mode, for the current size of at least one datum across the plurality of sample records in the set of data.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein executing logic to estimate the cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set of data, comprises executing logic to estimate a number of bytes to be fetched from the electronic data store to execute the query on the set of data.

### Claim 6 (depends on 2)

The computer-implemented method of claim 2, wherein executing logic to estimate the cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set of data, comprises:
executing logic to estimate a current size of the first datum and each of the selected additional one or more of the plurality of datum based on the estimated current size of each of the plurality of datum across the plurality of sample records in the set of data;
executing logic to sum the estimated current size of the first datum and the estimated current size of each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data; and
executing logic to multiply the summed estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data by the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising executing logic to compare the estimated cost of executing the query on the set of data to a selected limit for a cost of executing a query on the set of data; and
wherein executing the query on the set of data comprises executing the query on the set of data where the estimated cost of executing the query on the set of data is less than the selected limit for the cost of executing the query on the set of data.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein executing the query on the set of data comprises, where the estimated cost of executing the query on the set of data is greater than the selected limit for the cost of executing the query on the set of data, one or more of:
transmitting a notification via the interface of the system that the estimated cost of executing the query on the set of data exceeds the selected limit for the cost of executing the query on the set of data;
delaying executing the query on the set of data for a period of time;
scheduling executing the query on the set of data according to a limit on a number of queries that can be executed against the set of data within a specified time period; and
transmitting a request for input to authorize or pay a fee to execute the query on the set of data.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1 wherein executing the query on the set of data comprises executing the query on the set of data responsive to the estimated cost of executing the query and one or more of: a throttling algorithm that controls when to execute the query against the set of data, a rate-limiting algorithm that limits a number of queries that can be executed against the set of data within a specific time period, and a Cost Of Goods Sold (COGS) bounding algorithm that tracks a cost incurred to execute the query against the set of data.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein executing logic to estimate the cost of executing the query comprises executing logic to estimate at least one of a computational cost to the system of executing the query and a dollar cost to a user or organization for executing the query.

### Claim 11

A computer system, comprising:
one or more processors;
a memory to store computer-executable instructions that, when executed by the one or more processors, cause the one or more processors to execute instructions for estimating a cost of querying a set of data maintained in an electronic data store accessible to the system, the set of data having a varying plurality of records each comprising a plurality of datum at least one or which varies in size, the method comprising:
executing logic to continually or repeatedly estimate a current shape of the set of data maintained in the electronic data store, including executing logic to estimate a current size of each of the plurality of datum in the plurality of records in the set of data;
receiving via an interface of the system a query specifying: a value for a first datum in the plurality of records in the set of data, a selection of an additional one or more of the plurality of datum in the plurality of records in the set of data, and a maximum number of first datum to be retrieved from the plurality of records in the set of data that have a value that matches the specified value for the first datum;
executing logic to estimate a cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set of data; and
executing the query on the set of data responsive to the estimated cost of executing the query.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein executing logic to estimate the current size of each of the plurality of datum in the plurality of records in the set of data comprises executing logic to estimate the current size of each of the plurality of datum across a plurality of sample records in the set of data.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein executing logic to estimate the current size of each of the plurality of datum across the plurality of sample records in the set of data comprises executing logic to estimate the current size of each of the plurality of datum across a plurality of uniformly distributed and randomly chosen sample records in the set of data.

### Claim 14 (depends on 12)

The computer system of claim 12, wherein executing logic to estimate the current size of each of the plurality of datum across the plurality of sample records in the set of data comprises executing logic to estimate one of a mean, a median, and a mode, for the current size of at least one datum across the plurality of sample records in the set of data.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein executing logic to estimate the cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum In the plurality of records in the set of data obtained from the estimated current shape of the set of data, comprises executing logic to estimate a number of bytes to be fetched from the electronic data store to execute the query on the set of data.

### Claim 16 (depends on 12)

The computer system of claim 12, wherein executing logic to estimate the cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set of data, comprises:
executing logic to estimate a current size of the first datum and each of the selected additional one or more of the plurality of datum based on the estimated current size of each of the plurality of datum across the plurality of sample records in the set of data;
executing logic to sum the estimated current size of the first datum and the estimated current size of each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data; and
executing logic to multiply the summed estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data by the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum.

### Claim 17 (depends on 11)

The computer system of claim 11, further comprising executing logic to compare the estimated cost of executing the query on the set of data to a selected limit for a cost of executing a query on the set of data; and
wherein executing the query on the set of data comprises executing the query on the set of data responsive to comparing the estimated cost of executing the query on the set of data to the selected limit for the cost of executing the query on the set of data.

### Claim 18 (depends on 11)

The computer system of claim 11, wherein executing the query on the set of data comprises executing the query on the set of data responsive to the estimated cost of executing the query and one or more of: a throttling algorithm that controls when to execute the query against the set of data, a rate-limiting algorithm that limits a number of queries that can be executed against the set of data within a specific time period, and a Cost Of Goods Sold (COGS) bounding algorithm that tracks a cost incurred to execute the query against the set of data.

### Claim 19 (depends on 11)

The computer system of claim 11, wherein executing logic to estimate the cost of executing the query comprises executing logic to estimate at least one of a computational cost to the system of executing the query and a dollar cost to a user or organization for executing the query.

### Claim 20

A non-transitory computer-readable medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to execute instructions for estimating a cost of querying a set of data maintained in an electronic data store accessible to the system, the set of data having a varying plurality of records each comprising a plurality of datum at least one of which varies in size, the method comprising:
executing logic to continually or repeatedly estimate a current shape of the set of data maintained in the electronic data store, including executing logic to estimate a current size of each of the plurality of datum in the plurality of records in the set of data;
receiving via an interface of the system a query specifying: a value for a first datum in the plurality of records in the set of data, a selection of an additional one or more of the plurality of datum in the plurality of records in the set of data, and a maximum number of first datum to be retrieved from the plurality of records in the set of data that have a value that matches the specified value for the first datum;
executing logic to estimate a cost of executing the query based on the maximum number of first datum to be retrieved from the plurality of records in the set of data that have the value that matches the specified value for the first datum, the selected additional one or more of the plurality of datum in the plurality of records in the set of data, and the estimated current size of the first datum and each of the selected additional one or more of the plurality of datum in the plurality of records in the set of data obtained from the estimated current shape of the set of data; and
executing the query on the set of data responsive to the estimated cost of executing the query.
