Some embodiments provide a non-transitory machine-readable medium that stores a program. The program receives, from a requestor, a query for data comprising a condition on a column of a table. The table includes a plurality of records divided into a plurality of zones. The program further determines a set of zones in the plurality of zones that include records that satisfy the condition based on a plurality of tallies associated with the plurality of zones. Each tally in the plurality of tallies is for indicating whether a zone in the plurality of zones include records with data values in the column of the table that satisfy the condition. The program also determines a result set of records in the table that satisfy the condition based on records in the set of zones. The program further sends the result set of records to the requestor.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A non-transitory machine-readable medium storing a program executable by at least one processing unit of a device, the program comprising sets of instructions for: receiving, from a requestor, a query for data comprising a condition on a column of a table, the table comprising a plurality of records divided into a plurality of zones, at least one zone in the plurality of zones including two or more records in the plurality of records; determining a set of zones in the plurality of zones that include records that satisfy the condition based on a plurality of tallies associated with the plurality of zones, each tally in the plurality of tallies for indicating whether a zone in the plurality of zones include records with data values in the column of the table that satisfy the condition, wherein the plurality of tallies associated with the plurality of zones are determined prior to receiving the query; determining a result set of records in the table that satisfy the condition based on records in the set of zones; and sending the result set of records to the requestor.
2. The non-transitory machine-readable medium of claim 1 , wherein the plurality of tallies is a first plurality of tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of tallies associated with the plurality of zones, each tally in the second plurality of tallies for indicating whether any of the records in a zone in the plurality of zones include records with data values in the column of the table that fail to satisfy the condition.
3. The non-transitory machine-readable medium of claim 1 , wherein the plurality of tallies is a plurality of bit tallies.
4. The non-transitory machine-readable medium of claim 3 , wherein the plurality of bit tallies is a first plurality of bit tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of bit tallies associated with the plurality of zones, each bit tally in the second plurality of bit tallies for indicating whether any of the records in a zone in the plurality of zones have data values in the column of the table that fail to satisfy the condition.
5. The non-transitory machine-readable medium of claim 1 , wherein the plurality of tallies is a plurality of count tallies.
6. The non-transitory machine-readable medium of claim 5 , wherein the plurality of count tallies is a first plurality of count tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of count tallies associated with the plurality of zones, each count tally in the second plurality of count tallies for indicating a number of records in a zone in the plurality of zones that fail to satisfy the condition.
7. The non-transitory machine-readable medium of claim 5 , wherein the plurality of count tallies is a first plurality of count tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of count tallies associated with the plurality of zones, each count tally in the second plurality of count tallies for indicating a total number of records in a zone in the plurality of zones.
8. A method comprising: receiving, from a requestor, a query for data comprising a condition on a column of a table, the table comprising a plurality of records divided into a plurality of zones, at least one zone in the plurality of zones including two or more records in the plurality of records; determining a set of zones in the plurality of zones that include records that satisfy the condition based on a plurality of tallies associated with the plurality of zones, each tally in the plurality of tallies for indicating whether a zone in the plurality of zones include records with data values in the column of the table that satisfy the condition, wherein the plurality of tallies associated with the plurality of zone are determined prior to receiving the query; determining a result set of records in the table that satisfy the condition based on records in the set of zones; and sending the result set of records to the requestor.
9. The method of claim 8 , wherein the plurality of tallies is a first plurality of tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of tallies associated with the plurality of zones, each tally in the second plurality of tallies for indicating whether any of the records in a zone in the plurality of zones include records with data values in the column of the table that fail to satisfy the condition.
10. The method of claim 8 , wherein the plurality of tallies is a plurality of bit tallies.
11. The method of claim 10 , wherein the plurality of bit tallies is a first plurality of bit tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of bit tallies associated with the plurality of zones, each bit tally in the second plurality of bit tallies for indicating whether any of the records in a zone in the plurality of zones have data values in the column of the table that fail to satisfy the condition.
12. The method of claim 8 , wherein the plurality of tallies is a plurality of count tallies.
13. The method of claim 12 , wherein the plurality of count tallies is a first plurality of count tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of count tallies associated with the plurality of zones, each count tally in the second plurality of count tallies for indicating a number of records in a zone in the plurality of zones that fail to satisfy the condition.
14. The method of claim 12 , wherein the plurality of count tallies is a first plurality of count tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of count tallies associated with the plurality of zones, each count tally in the second plurality of count tallies for indicating a total number of records in a zone in the plurality of zones.
15. A system comprising: a set of processing units; and a non-transitory computer-readable medium storing instructions that when executed by at least one processing unit in the set of processing units cause the at least one processing unit to: receive, from a requestor, a query for data comprising a condition on a column of a table, the table comprising a plurality of records divided into a plurality of zones, at least one zone in the plurality of zones including two or more records in the plurality of records; determine a set of zones in the plurality of zones that include records that satisfy the condition based on a plurality of tallies associated with the plurality of zones, each tally in the plurality of tallies for indicating whether a zone in the plurality of zones include records with data values in the column of the table that satisfy the condition, wherein the plurality of tallies associated with the plurality of zones are determined prior to receiving the query; determine a result set of records in the table that satisfy the condition based on records in the set of zones; and send the result set of records to the requestor.
16. The system of claim 15 , wherein the plurality of tallies is a first plurality of tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of tallies associated with the plurality of zones, each tally in the second plurality of tallies for indicating whether any of the records in a zone in the plurality of zones include records with data values in the column of the table that fail to satisfy the condition.
17. The system of claim 15 , wherein the plurality of tallies is a plurality of bit tallies.
18. The system of claim 17 , wherein the plurality of bit tallies is a first plurality of bit tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of bit tallies associated with the plurality of zones, each bit tally in the second plurality of bit tallies for indicating whether any of the records in a zone in the plurality of zones have data values in the column of the table that fail to satisfy the condition.
19. The system of claim 15 , wherein the plurality of tallies is a plurality of count tallies.
20. The system of claim 19 , wherein the plurality of count tallies is a first plurality of count tallies, wherein determining the set of zones in the plurality of zones that include records that satisfy the condition is further based on a second plurality of count tallies associated with the plurality of zones, each count tally in the second plurality of count tallies for indicating a number of records in a zone in the plurality of zones that fail to satisfy the condition.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
November 27, 2017
March 2, 2021
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.