# US 2019/0095532 A1 · Run-time querying of multi-tenant non-relational platform objects

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

- Number: US 2019/0095532 A1
- Document ID: US20190095532A1
- Status: Published application
- Kind: A1
- Application number: 15/717,772
- Filed: 2017-09-27
- Published: 2019-03-28
- Earliest claimed: 2017-09-27
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Eli Levine; Samarpan Jain; James Ferguson; Jan Asita Fernando
- Web page: https://patentgrep.com/patent/US20190095532A1

## CPC

- G06F 16/24549: {Run-time optimisation}
- G06F 16/24568: {Data stream processing; Continuous queries}
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are examples of systems, apparatus, methods and computer program products for providing run-time querying of muli-tenant non-relational database objects. A database system maintains a multi-tenant non-relational database associated with a number of enterprises, a number of records, and a number of data objects for each of the enterprises, each data object having at least one composite key field. A request is received during runtime to query data related to a data object, and the system determines that the data object is defined to be used in associated with a non-relational database. The system then retrieves a metadata model of the data object, determines that the request includes at least one composite key field for the data object, and processes the requery to query data in synchronous fashion. Finally, a query response is provided to the user.

## Claims

### Claim 1

A system comprising:
A database system implemented using a server system, the database system configurable to cause:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises, the plurality of data objects each having one or more fields, the fields comprising at least one composite key field;
receiving, during runtime of the database system, a request from a user of the database system to query data related to a data object from the plurality of data objects;
determining, responsive to processing the request to query data, that the data object is defined to be used in association with a non-relational database;
retrieving a metadata model of the data object, the metadata model comprising at least one field of the data object;
determining, using the metadata model, that the request to query data includes at least one composite key field of the data object;
processing, during runtime of the database system, the request to query data in synchronous fashion; and
providing a query response to the user.

### Claim 2 (depends on 1)

The system of claim 1, the instructions further configurable to cause the database system to:
determine, responsive to retrieving the metadata model, that the user query includes a filter condition.

### Claim 3 (depends on 2)

The system of claim 2, the instructions further configurable to cause the database system to:
determine, responsive to retrieving the metadata model, that the filter condition has one or more fields defined in a composite key without gaps.

### Claim 4 (depends on 1)

The system of claim 1, wherein the at least one composite key field of the data object is defined by an entity associated with the user and the data object.

### Claim 5 (depends on 1)

The system of claim 1, wherein receiving the request and providing the response query to the user is completed within one continuous user session associated with the user.

### Claim 6 (depends on 1)

The system of claim 1, the instructions further configurable to cause the database system to:
determine that the user is associated with one or more permissions to access the data object.

### Claim 7 (depends on 1)

The system of claim 1, wherein filter criteria specifies the at least one composite key field.

### Claim 8 (depends on 1)

The system of claim 1, wherein the composite key for the data object is one of:
a composite primary key, and a composite secondary key.

### Claim 9 (depends on 1)

The system of claim 1, wherein the metadata model includes at least one definition associated with the data object.

### Claim 10

A method comprising:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises, the plurality of data objects each having one or more fields, the fields comprising at least one composite key field;
receiving, during runtime of the database system, a request from a user of the database system to query data related to a data object from the plurality of data objects;
determining, responsive to processing the request to query data, that the data object is defined to be used in association with a non-relational database;
retrieving a metadata model of the data object, the metadata model comprising at least one field of the data object;
determining, using the metadata model, that the request to query data includes at least one composite key field of the data object;
processing, during runtime of the database system, the request to query data in synchronous fashion; and
providing a query response to the user.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
determining, responsive to retrieving the metadata model, that the user query includes a filter condition.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
determining, responsive to retrieving the metadata model, that the filter condition has one or more fields defined in a composite key without gaps.

### Claim 13 (depends on 10)

The method of claim 10, wherein the at least one composite key field of the data object is defined by an entity associated with the user and the data object.

### Claim 14 (depends on 10)

The method of claim 10, wherein receiving the request and providing the response query to the user is completed within one continuous user session associated with the user.

### Claim 15 (depends on 10)

The method of claim 10, further comprising:
determining that the user is associated with one or more permissions to access the data object.

### Claim 16 (depends on 10)

The method of claim 10, wherein filter criteria specifies the at least one composite key field.

### Claim 17

A computer program product comprising computer-readable program code capable of being executed by one or more processors when retrieved from a non-transitory computer-readable medium, the program code comprising instructions configurable to cause:
maintaining a multi-tenant non-relational database associated with a plurality of enterprises, the multi-tenant non-relational database identifying a plurality of records and a plurality of data objects for each of the plurality of enterprises, the plurality of data objects each having one or more fields, the fields comprising at least one composite key field;
receiving, during runtime of the database system, a request from a user of the database system to query data related to a data object from the plurality of data objects;
determining, responsive to processing the request to query data, that the data object is defined to be used in association with a non-relational database;
retrieving a metadata model of the data object, the metadata model comprising at least one field of the data object;
determining, using the metadata model, that the request to query data includes at least one composite key field of the data object;
processing, during runtime of the database system, the request to query data in synchronous fashion; and
providing a query response to the user.

### Claim 18 (depends on 17)

The computer program product of claim 17, the program code comprising instructions further configurable to cause:
determining, responsive to retrieving the metadata model, that the user query includes a filter condition.

### Claim 19 (depends on 17)

The computer program product of claim 17, the program code comprising instructions further configurable to cause:
determining, responsive to retrieving the metadata model, that the filter condition has one or more fields defined in a composite key without gaps.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the at least one primary key field of the data object is defined by an entity associated with the user and the data object.
