# US 2016/0253243 A1 · Techniques for implementing batch processing in a database system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253243 A1
- Document ID: US20160253243A1
- Status: Published application
- Kind: A1
- Application number: 15/056,764
- Filed: 2016-02-29
- Published: 2016-09-01
- Earliest claimed: 2008-08-25
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Scott Yancey; Andrew Smith; Andrew Waite; Craig Weissman
- Web page: https://patentgrep.com/patent/US20160253243A1

## CPC

- G06F 11/1451: {by selection of backup contents}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2372: {Updates performed during offline database operations}
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

A batch processing method in a multi-tenant database system, the method comprising:
operating on instructions from a tenant to have said database system perform processes on a subset of content stored on said database system;
identifying from said instructions an object associated with a class to execute a batch code interface that invokes multiple methods to schedule and execute functions upon said subset; and
executing said batch code interface asynchronously with operations of said database system by invoking said multiple methods, thereby providing a batch processing facility to said tenant.

### Claim 2 (depends on 1)

The method as recited in claim 1 wherein executing further includes invoking a third method in which said tenant is notified of completion of said first and second methods.

### Claim 3 (depends on 1)

The method as recited in claim 1 wherein executing further includes invoking said multiple methods, with one of said multiple methods identifying objects of said subset subject to processes.

### Claim 4 (depends on 1)

The method as recited in claim 1 wherein executing further includes invoking said multiple methods, with one of said multiple methods identifying objects of said subset subject to processes and a number of iterations of a second method will be invoked to process said objects.

### Claim 5 (depends on 1)

The method as recited in claim 1 wherein executing further includes invoking said multiple methods, with one of said multiple methods identifying objects of said subset subject to processes and calling a querylocator object to identify multiple subgroups of said objects to process in accordance with said second method.

### Claim 6 (depends on 1)

The method as recited in claim 1 wherein executing further includes invoking said multiple methods, with one of said multiple methods identifying objects of said subset subject to processes and calling a querylocator object to identifying subgroups of said objects to process in accordance with said second method and further including sequentially processing said subgroups.

### Claim 7 (depends on 1)

The method as recited in claim 1 further including obtaining from additional tenants additional instructions to execute a plurality of additional batch code interfaces each of which invokes additional multiple methods to schedule and execute additional functions upon additional subsets of said content; with executing further including sequentially executing said additional functions and said function.

### Claim 8 (depends on 1)

The method as recited in claim 1 further including obtaining from additional tenants additional instructions to execute a plurality of additional batch code interfaces with each of said plurality of additional batch code interfaces invoking an additional execution method multiple times to sequentially process multiple additional subgroups of additional objects stored on said database system, and processing one of said additional subgroups before completing process of said subset.

### Claim 9 (depends on 1)

The method as recited in claim 1 further including obtaining from additional tenants additional instructions to execute a plurality of additional batch code interfaces with each of said plurality of additional batch code interfaces invoking an additional execution method multiple times to sequentially process multiple additional subgroups of additional objects stored on said database system, with one of said multiple additional sub-groups associated with one of the additional tenants being queued to execute before one of two consecutive subgroups of objects associated with one of the remaining tenants of said additional tenants and after the remaining subgroup of said two consecutive subgroups.

### Claim 10

A machine-readable medium carrying one or more sequences of instructions for implementing a batch processing method in a multi-tenant database system when executed by one or more processors and cause said one or more processors to carry out the steps of:
operating on instructions from a tenant to have said database system perform processes on a subset of content stored on said database system;
identifying from said instructions an object associated with a class to execute a batch code interface that invokes multiple methods to schedule and execute functions upon said subset; and
executing said batch code interface asynchronously with operations of said database system by invoking said multiple methods, thereby providing a batch processing facility to said tenant.
