Techniques for implementing batch processing in a multi-tenant on-demand database system
First Claim
Patent Images
1. A method in a multi-tenant database system, the method comprising:
- enqueuing a batch request in a request queue responsive to receiving a request from a tenant of the multi-tenant database system;
calling a query locator object of the multi-tenant database system that points to a maximum number of objects to be scheduled for uninterrupted processing via the multi-tenant database system;
retrieving the maximum number of objects based on the called query locator object;
scheduling execution of the batch request by queuing the batch request within an execute queue among a plurality of objects in the execute queue;
running a query more method of the multi-tenant database system to construct and return an SObject array, the SObject array having therein objects to be the subject of an EXECUTE method for processing the batch request; and
passing the SObject array to the EXECUTE method for execution via the multi-tenant database system responsive to the request from the tenant of the multi-tenant database system.
1 Assignment
0 Petitions
Accused Products
Abstract
In accordance with embodiments, there are provided techniques for implementing batch processing in a multi-tenant database system. These techniques for implementing batch processing in a multi-tenant database system may enable embodiments to provide great flexibility to a tenant of the architecture to perform desired functions on content of the database while allowing the owner of the architecture schedule the processing of the functions on the content.
217 Citations
20 Claims
-
1. A method in a multi-tenant database system, the method comprising:
-
enqueuing a batch request in a request queue responsive to receiving a request from a tenant of the multi-tenant database system; calling a query locator object of the multi-tenant database system that points to a maximum number of objects to be scheduled for uninterrupted processing via the multi-tenant database system; retrieving the maximum number of objects based on the called query locator object; scheduling execution of the batch request by queuing the batch request within an execute queue among a plurality of objects in the execute queue; running a query more method of the multi-tenant database system to construct and return an SObject array, the SObject array having therein objects to be the subject of an EXECUTE method for processing the batch request; and passing the SObject array to the EXECUTE method for execution via the multi-tenant database system responsive to the request from the tenant of the multi-tenant database system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory machine-readable medium carrying one or more sequences of instructions for implementing operations in a multi-tenant database system, the operations comprising:
-
enqueuing a batch request in a request queue responsive to receiving a request from a tenant of the multi-tenant database system; calling a query locator object of the multi-tenant database system that points to a maximum number of objects to be scheduled for uninterrupted processing via the multi-tenant database system; retrieving the maximum number of objects based on the called query locator object; scheduling execution of the batch request by queuing the batch request within an execute queue among a plurality of objects in the execute queue; running a query more method of the multi-tenant database system to construct and return an SObject array, the SObject array having therein objects to be the subject of an EXECUTE method for processing the batch request; and passing the SObject array to the EXECUTE method for execution via the multi-tenant database system responsive to the request from the tenant of the multi-tenant database system. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. An apparatus for implementing a batch processing method in a multi-tenant database system, the apparatus comprising:
-
a processor; and a memory having a sequence of instructions which, when executed by the processor, cause the processor to carry out operations comprising; enqueuing a batch request in a request queue responsive to receiving a request from a tenant of the multi-tenant database system; calling a query locator object of the multi-tenant database system that points to a maximum number of objects to be scheduled for uninterrupted processing via the multi-tenant database system; retrieving the maximum number of objects based on the called query locator object; scheduling execution of the batch request by queuing the batch request within an execute queue among a plurality of objects in the execute queue; running a query more method of the multi-tenant database system to construct and return an SObject array, the SObject array having therein objects to be the subject of an EXECUTE method for processing the batch request; and passing the SObject array to the EXECUTE method for execution via the multi-tenant database system responsive to the request from the tenant of the multi-tenant database system.
-
-
20. A method for transmitting code to implement batch processing method in a multi-tenant database system on a transmission medium, the method comprising:
-
transmitting code to enqueue a batch request in a request queue responsive to receiving a request from a tenant of the multi-tenant database system; transmitting code to call a query locator object of the multi-tenant database system that points to a maximum number of objects to be scheduled for uninterrupted processing via the multi-tenant database system; transmitting code to retrieve the maximum number of objects based on the called query locator object; transmitting code to schedule execution of the batch request by queuing the batch request within an execute queue among a plurality of objects in the execute queue; transmitting code to run a query more method of the multi-tenant database system to construct and return an SObject array, the SObject array having therein objects to be the subject of an EXECUTE method for processing the batch request; and transmitting code to pass the SObject array to the EXECUTE method for execution via the multi-tenant database system responsive to the request from the tenant of the multi-tenant database system.
-
Specification