IP Library Granted Patent US 12,321,342
Granted Patent B1
US 12,321,342 · App. 18/440,160 · Granted Jun 3, 2025

Compiling optimized database statements

Inventors: Max H. Seiden (San Francisco, CA); Deepanshu Utkarsh (San Francisco, CA)
Assignee: SIGMA COMPUTING, INC.
G06F16/2428G06F16/2423G06F16/2454
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 12,321,342
App. No.
18/440,160
Granted
Jun 3, 2025
Kind
B1
Abstract

Compiling optimized database statements including receiving, by a query compiler from a client computing system, a state specification of a graphical user interface in response to a user manipulating the graphical user interface on the client computing system, wherein the state specification is in a standard file format and describes modifications to a plurality of visual elements of the graphical user interface; compiling, by the query compiler, a database statement from the state specification such that a limit clause within the database statement is processed by a database before at least one join clause; and sending, by the query compiler, the optimized database statement to a database on a cloud-based data warehouse.

Claims (29)

1. A method of compiling optimized database statements, the method comprising:

receiving, by a query compiler from a client computing system, a state specification of a graphical user interface;

compiling, by the query compiler, an optimized database statement from the state specification such that a limit clause within the optimized database statement is processed by a database before at least one join clause, wherein the limit clause identifies a maximum number of records or rows for a result dataset; and

sending, by the query compiler, the optimized database statement to a database on a cloud-based data warehouse.

2. The method of claim 1 , wherein compiling the optimized database statement comprises lowering the limit clause within an operator query tree representation, and wherein the optimized database statement has a data format different from the received state specification.

3. The method of claim 1 , wherein compiling the optimized database statement comprises repositioning, within the optimized database statement, the limit clause such that the limit clause is processed by the database before the at least one join clause.

4. The method of claim 1 , wherein compiling the optimized database statement is in response to determining an expected number of record results.

5. The method of claim 1 , wherein the graphical user interface comprises a worksheet presenting a data set from the cloud-based data warehouse.

6. The method of claim 1 , wherein, upon receiving the optimized database statement, the database on the cloud-based data warehouse performs additional optimizations on the optimized database statement.

7. The method of claim 1 , wherein the optimized database statement is compiled on an intermediary computing system between the client computing system and the cloud-based data warehouse.

8. The method of claim 1 , wherein the optimized database statement is a structured query language statement.

9. An apparatus for compiling optimized database statements, the apparatus comprising a computer processor, a computer memory operatively coupled to the computer processor, the computer memory having disposed within it computer program instructions that, when executed by the computer processor, cause the apparatus to carry out the steps of:

receiving, by a query compiler from a client computing system, a state specification of a graphical user interface;

compiling, by the query compiler, an optimized database statement from the state specification such that a limit clause within the optimized database statement is processed by a database before at least one join clause, wherein the limit clause identifies a maximum number of records or rows for a result dataset; and

sending, by the query compiler, the optimized database statement to a database on a cloud-based data warehouse.

10. The apparatus of claim 9 , wherein compiling the optimized database statement comprises lowering the limit clause within an operator query tree representation.

11. The apparatus of claim 9 , wherein compiling the optimized database statement comprises repositioning, within the optimized database statement, the limit clause such that the limit clause is processed by the database before the at least one join clause.

12. The apparatus of claim 9 , wherein compiling the optimized database statement is in response to determining an expected number of record results.

13. The apparatus of claim 9 , wherein the graphical user interface comprises a worksheet presenting a data set from the cloud-based data warehouse.

14. The apparatus of claim 9 , wherein, upon receiving the optimized database statement, the database on the cloud-based data warehouse performs additional optimizations on the optimized database statement.

15. The apparatus of claim 9 , wherein the optimized database statement is compiled on an intermediary computing system between the client computing system and the cloud-based data warehouse.

16. The apparatus of claim 9 , wherein the optimized database statement is a structured query language statement.

17. A computer program product for compiling optimized database statements, the computer program product disposed upon a non-transitory computer readable storage medium, the computer program product comprising computer program instructions that, when executed, cause a computer to carry out the steps of:

receiving, by a query compiler from a client computing system, a state specification of a graphical user interface;

compiling, by the query compiler, an optimized database statement from the state specification such that a limit clause within the optimized database statement is processed by a database before at least one join clause, wherein the limit clause identifies a maximum number of records or rows for a result dataset; and

sending, by the query compiler, the optimized database statement to a database on a cloud-based data warehouse.

18. The computer program product of claim 17 , wherein compiling the optimized database statement comprises lowering the limit clause within an operator query tree representation.

19. The computer program product of claim 17 , wherein compiling the optimized database statement comprises repositioning, within the optimized database statement, the limit clause such that the limit clause is processed by the database before the at least one join clause.

20. The computer program product of claim 17 , wherein compiling the optimized database statement is in response to determining an expected number of record results.

Assignments (2)
SUPPLEMENT NO. 1 TO INTELLECTUAL PROPERTY SECURITY AGREEMENT Recorded Feb 23, 2026
From: SIGMA COMPUTING, INC.
To: JPMORGAN CHASE BANK, N.A.
Reel/Frame 074971/0863 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 13, 2024
From: SEIDEN, MAX H.; UTKARSH, DEEPANSHU
To: SIGMA COMPUTING, INC.
Reel/Frame 066451/0338 →
Continuity (2)
Continuation 18186066 · Mar 17, 2023
Continuation 17061148 · Oct 1, 2020
References Cited (16)
US 8661023B1 · Chun · 2014 [cited by examiner]
US 9183254B1 · Cole et al. · 2015 [cited by applicant]
US 10936589B1 · Beitchman · 2021 [cited by examiner]
US 20070233655A1 · Engels · 2007 [cited by examiner]
US 20090077013A1 · Hu · 2009 [cited by examiner]
US 20140095469A1 · Chen · 2014 [cited by examiner]
US 20150356141A1 · Yan · 2015 [cited by examiner]
US 20170193398A1 · Schmidt · 2017 [cited by examiner]
US 20180121326A1 · Qi et al. · 2018 [cited by applicant]
US 20180218038A1 · Katahira et al. · 2018 [cited by applicant]
US 20200089796A1 · Seiden et al. · 2020 [cited by applicant]
US 20210279043A1 · Egenolf · 2021 [cited by examiner]
US 20210382920A1 · Eltabakh · 2021 [cited by examiner]
Stackoverflow, “Setting a Limit before JOINs of tables”, pp. 1-2, https://stackoverflow.com/questions/38700572/setting-a-limit-before-joins-of-tables (Year: 2016). [cited by examiner]
Anonymous, “Does using LIMIT improve the performance and is it noticeable?,” XP055876708, URL:https://dba.stackexchange.com/questions/52079/does-using-limit-improve-the-performance-and-is-it-noticeable/52087#52087 [retr… [cited by applicant]
International Search Report and Written Opinion, PCT/US2021/053112, Jan. 18, 2022, 10 pages. [cited by applicant]