IP Library Granted Patent US 10,614,069
Granted Patent B2
US 10,614,069 · App. 15/871,608 · Granted Apr 7, 2020

Workflow driven database partitioning

Inventor: James Ding (New York, NY)
Assignee: Palantir Technologies Inc.
G06F16/24554G06F16/213G06F16/217G06F16/221G06F16/242G06F16/2423
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,614,069
App. No.
15/871,608
Granted
Apr 7, 2020
Kind
B2
Abstract

A database is configured to analyze user queries to dynamically partition the database according to a partition scheme. User queries can be rewritten based on the partition scheme so that, in response to queries, partitions including relevant data are read while partitions including irrelevant data can be skipped, reducing latency. Files can be named according to the partition scheme and stored on respective partitions so that low partition management can be implemented by underlying systems. Blocks within files can be sorted and statistics can be determined. The statistics can be used to find and read relevant blocks and skip irrelevant blocks.

Claims (50)

1. A computer system comprising:

a data store comprising:

a plurality of first data files, each having a first value for a first variable, stored in a first partition; and

a plurality of second data files, each having a second value for the first variable, stored in a second partition, wherein the first partition and the second partition are recognizable as separate storage partitions by an operating system, and wherein at least the first variable is part of a nested partition scheme;

one or more hardware computer processors configured to execute computer executable instructions to cause the computer system to:

receive a user-written query that does not specify the first variable;

rewrite the user-written query to include the first value for the first variable in a rewritten query;

select the first partition for access based at least in part on the first value of the first variable in the rewritten query matching the first value of the first variable in each of the plurality of first data files stored in the first partition; and

execute the rewritten query on the first plurality of data files stored in the first partition according to the nested partition scheme; and

wherein variables at higher levels of the nested partition scheme more frequently reduce a search space than other variables at lower levels of the nested partition scheme.

2. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to execute the rewritten query according to the nested partition scheme without reading the plurality of second data files from the second partition in response to a mismatch between the first value for the first variable in the rewritten query and the second value.

3. The computer system of claim 1 , wherein data files in the first partition are configured to be fetched as a plurality of blocks of a common block size, and wherein the first partition includes statistics about variables included in the plurality of blocks.

4. The computer system of claim 3 , wherein the statistics include data about values of the first variable.

5. The computer system of claim 4 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

based at least in part on the statistics indicating that values of the first variable in a first block include the value for the first variable, read the first block in the first partition; and

based at least in part on the statistics indicating that values of the first variable in a second block do not include the value for the first variable, reading the second block in the first partition.

6. The computer system of claim 1 , wherein:

a first data file has a first filename and is stored in the first partition, the first filename indicating the first value of the first variable; and

a second data file has a second filename and is stored in the second partition, the second filename indicating the second value of the first variable.

7. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

determine a frequency of a presence of the first variable in user-written queries.

8. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

determine a frequency of values of the first variable in query results.

9. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

determine how frequently the first variable separates query results from data not included in the query results.

10. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

determine the nested partition scheme based at least in part on a frequency of the first variable, wherein the nested partition scheme includes storing data files having the first value for the first variable on one or more partitions that include the first partition and storing data files having the second value for the first variable on one or more different partitions that include the second partition.

11. The computer system of claim 10 , wherein the one or more hardware computer processors are configured to execute computer executable instructions to further cause the computer system to:

rewrite the user-written query to include the first value for the first variable in a rewritten query based at least in part on the first variable being included in the nested partition scheme.

12. The computer system of claim 10 , wherein the nested partition scheme comprises at least two levels of variables used to separate partitions.

13. The computer system of claim 12 , wherein the variables at the higher levels of the nested partition scheme more frequently reduce a search space of the data store by larger amounts than the other variables at the lower levels of the nested partition scheme.

14. The computer system of claim 1 , wherein the first variable is a lower cardinality superset of a user-written variable in the user-written query.

15. The computer system of claim 1 , wherein the first variable is a Boolean variable.

16. The computer system of claim 1 , wherein the first variable is a lower cardinality hash of a user-written variable in the user-written query.

17. The computer system of claim 1 , wherein the one or more hardware computer processors are configured to execute computer executable instructions in order to cause the computer system to:

determine a first partition scheme based at least in part on queries in a first workflow; and

determine a second partition scheme based at least in part on queries in a second workflow; and

wherein the data store includes data files redundantly stored under both the first partition scheme and under the second partition scheme.

18. A system comprising:

one or more hardware computer processors configured to execute computer executable instructions to cause the system to:

receive a user-written query that does not specify a first variable, wherein the first variable is part of a nested partition scheme;

rewrite the user-written query to include a first value for the first variable in a rewritten query; and

transmit the rewritten query to be executed according to the nested partition scheme by on a database, wherein the database includes:

a plurality of first data files, each having a first value for the first variable, stored in a first partition; and

a plurality of second data files, each having a second value for the first variable, stored in a second partition, wherein the first partition and the second partition are recognizable as separate storage partitions by an operating system;

wherein, to execute the query according to the nested partition scheme, the first partition is selected for access based at least in part in response to the rewritten query including the first value for the first variable that matches the first value of the first variable in each of the plurality of first data files stored in the first partition; and

wherein higher levels of the nested partition scheme more frequently reduce a search space of the database than lower levels of the nested partition scheme.

19. The system of claim 18 , wherein:

a first data file has a first filename and is stored in the first partition, the first filename indicating the first value of the first variable; and

a second data file has a second filename and is stored in the second partition, the second filename indicating the second value of the first variable.

Assignments (8)
ASSIGNMENT OF INTELLECTUAL PROPERTY SECURITY AGREEMENTS Recorded Jul 3, 2022
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: WELLS FARGO BANK, N.A.
Reel/Frame 060572/0640 →
SECURITY INTEREST Recorded Jul 3, 2022
From: PALANTIR TECHNOLOGIES INC.
To: WELLS FARGO BANK, N.A.
Reel/Frame 060572/0506 →
CORRECTIVE ASSIGNMENT TO CORRECT THE ERRONEOUSLY LISTED PATENT BY REMOVING APPLICATION NO. 16/832267 FROM THE RELEASE OF SECURITY INTEREST PREVIOUSLY RECORDED ON REEL 052856 FRAME 0382. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Aug 26, 2021
From: ROYAL BANK OF CANADA
To: PALANTIR TECHNOLOGIES INC.
Reel/Frame 057335/0753 →
SECURITY INTEREST Recorded Jun 4, 2020
From: PALANTIR TECHNOLOGIES INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 052856/0817 →
RELEASE OF SECURITY INTEREST Recorded Jun 4, 2020
From: ROYAL BANK OF CANADA
To: PALANTIR TECHNOLOGIES INC.
Reel/Frame 052856/0382 →
SECURITY INTEREST Recorded Jan 27, 2020
From: PALANTIR TECHNOLOGIES INC.
To: MORGAN STANLEY SENIOR FUNDING, INC., AS ADMINISTRATIVE AGENT
Reel/Frame 051713/0149 →
SECURITY INTEREST Recorded Jan 27, 2020
From: PALANTIR TECHNOLOGIES INC.
To: ROYAL BANK OF CANADA, AS ADMINISTRATIVE AGENT
Reel/Frame 051709/0471 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 7, 2018
From: DING, JAMES
To: PALANTIR TECHNOLOGIES INC.
Reel/Frame 044860/0121 →
Continuity (2)
Provisional Application 62593765 · Dec 1, 2017
Related Publication 20190171743A1 · Jun 6, 2019