IP Library Granted Patent US 11,232,118
Granted Patent B2
US 11,232,118 · App. 16/299,042 · Granted Jan 25, 2022

Optimizing result presentation of a database operation

Inventor: Seth John White (San Francisco, CA)
Assignee: salesforce.com, Inc.
G06F16/248G06F16/2455
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 11,232,118
App. No.
16/299,042
Granted
Jan 25, 2022
Kind
B2
Abstract

Techniques for optimizing result presentation for a database query. A database query is received. The database query is performed with a clause indicating one or more offset values to be used in displaying results from the database query. The one or more offset values indicate a subset within the results from the database query to be presented. An order is imposed on the results from the database query. The subset is presented as determined by the one or more offset values.

Claims (30)

1. A method comprising:

receiving, with a hardware database server, a database query, wherein the database query comprises a salesforce object query language (SOQL)-compliant query;

determining whether the database query has not been specified with an explicit total order;

modifying the database query, if the database query has not been specified with an explicit total order, with a clause indicating one or more offset values and at least one limit value to be used in displaying results from the database query, wherein the one or more offset values indicate a subset within the results from the database query to be presented to result in an improved database query;

causing the improved database query to be performed on a database managed with the hardware database server with the clause having the one or more offset values and the at least one limit value to be used in displaying results from the improved database query in a paged format on a user electronic device, wherein the one or more clauses inserted in the improved database query agent indicate a subset within the results from the improved database query to be presented;

imposing an order on results from the database query according to at least the one or more offset values and the at least one limit value; and

causing a subset of the results as determined by the one or more offset values and the at least one limit value along with a number of pages in the query result to be displayed on the user electronic device.

2. The method of claim 1 wherein the database query is performed within a multitenant database environment.

3. The method of claim 1 wherein the one or more offset values indicate a subset of rows within the results from the database query to return.

4. The method of claim 3 wherein the one or more offset values operate to impose a limit on the number of rows to return.

5. The method of claim 1 wherein the order is based on a query shape.

6. The method of claim 1 wherein the order is based on a query size.

7. An article comprising a non-transitory computer-readable medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processors to:

receive, with a hardware database server, a database query, wherein the database query comprises a salesforce object query language (SOQL)-compliant query;

determine whether the database query has not been specified with an explicit total order;

modify the database query, if the database query has not been specified with an explicit total order, with a clause indicating one or more offset values and at least one limit value to be used in displaying results from the database query, wherein the one or more offset values indicate a subset within the results from the database query to be presented to result in an improved database query;

cause the improved database query to be performed on a database managed with the hardware database server with the clause having the one or more offset values and the at least one limit value to be used in displaying results from the improved database query in a paged format on a user electronic device, wherein the inserted in the improved database query agent indicate a subset within the results from the improved database query to be presented;

impose an order on results from the database query according to at least the one or more offset values and the at least one limit value; and

cause a subset of the results as determined by the one or more offset values and the at least one limit value along with a number of pages in the query result to be displayed on the user electronic device.

8. The article of claim 7 wherein the database query is performed within a multitenant database environment.

9. The article of claim 7 wherein the one or more offset values indicate a subset of rows within the results from the database query to return.

10. The article of claim 9 wherein the one or more offset values operate to impose a limit on the number of rows to return.

11. The article of claim 7 wherein the order is based on a query shape.

12. The article of claim 7 wherein the order is based on a query size.

13. An apparatus comprising:

at least one memory device hosting a database;

at least one hardware processor coupled with the at least one memory device, the at least one hardware processor to receive, with a hardware database server, a database query, wherein the database query comprises a salesforce object query language (SOQL)-compliant query, to determine whether the database query has not been specified with an explicit total order, to modify the database query, if the database query has not been specified with an explicit total order, with a clause indicating one or more offset values and at least one limit value to be used in displaying results from the database query, wherein the one or more offset values indicate a subset within the results from the database query to be presented to result in an improved database query, to cause the improved database query to be performed on a database managed with the hardware database server with the clause having the one or more offset values and the at least one limit value to be used in displaying results from the improved database query in a paged format on a user electronic device, wherein the one or more clauses inserted in the improved database query agent indicate a subset within the results from the improved database query to be presented, to impose an order on results from the database query according to at least the one or more offset values and the at least one limit value, and to cause a subset of the results as determined by the one or more offset values and the at least one limit value along with a number of pages in the query result to be displayed on the user electronic device.

14. The apparatus of claim 13 wherein the database query is performed within a multitenant database environment.

15. The apparatus of claim 13 wherein the order is based on a query shape.

16. The apparatus of claim 13 wherein the order is based on a query size.

Assignments (2)
CHANGE OF NAME Recorded Dec 18, 2024
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 069717/0399 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 2, 2019
From: WHITE, SETH JOHN
To: SALESFORCE.COM, INC.
Reel/Frame 049068/0260 →