METHODS AND SYSTEMS FOR OPTIMIZING QUERIES IN A MULTI-TENANT STORE
First Claim
1. A method of optimizing database queries in a multi-tenant database system having a relational data store and a non-relational data store, the method comprising:
- receiving a request at a host system for the multi-tenant database system, the request specifying data to be retrieved from the multi-tenant database system;
retrieving, based on the request via the host system, one or more locations of the data to be retrieved;
generating, at the host system, a database query based on the request, wherein the database query specifies a plurality of data elements to be retrieved, the plurality of data elements including one or more data elements residing within the non-relational data store and one or more other data elements residing within the relational data store;
optimizing the database query via a query optimizer to generate an optimized database query having an optimized query syntax that is distinct from a query syntax of the database query; and
executing the optimized database query against the multi-tenant database system to retrieve the data.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems for optimizing queries in a multi-tenant store are described. In one embodiment, such a method includes retrieving data from a multi-tenant database system having a relational data store and a non-relational data store, receiving a request specifying data to be retrieved, retrieving one or more locations of the data to be retrieved, generating a database query based on the request, in which the database query specifies a plurality of data elements to be retrieved, the plurality of data elements including one or more data elements residing within the non-relational data store and one or more other data elements residing within the relational data store, generating an optimized database query having an optimized query syntax that is distinct from a query syntax of the database query, and executing the optimized database query against the multi-tenant database system to retrieve the data.
38 Citations
10 Claims
-
1. A method of optimizing database queries in a multi-tenant database system having a relational data store and a non-relational data store, the method comprising:
-
receiving a request at a host system for the multi-tenant database system, the request specifying data to be retrieved from the multi-tenant database system; retrieving, based on the request via the host system, one or more locations of the data to be retrieved; generating, at the host system, a database query based on the request, wherein the database query specifies a plurality of data elements to be retrieved, the plurality of data elements including one or more data elements residing within the non-relational data store and one or more other data elements residing within the relational data store; optimizing the database query via a query optimizer to generate an optimized database query having an optimized query syntax that is distinct from a query syntax of the database query; and executing the optimized database query against the multi-tenant database system to retrieve the data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer readable storage medium having instructions stored thereon that, when executed by processor in a host system, perform a method comprising:
-
receiving a request at a host system for the multi-tenant database system, the request specifying data to be retrieved from the multi-tenant database system; retrieving one or more locations of the data to be retrieved based on the request; generating a database query based on the request, wherein the database query specifies a plurality of data elements to be retrieved, the plurality of data elements including one or more data elements residing within the non-relational data store and one or more other data elements residing within the relational data store; optimizing the database query to generate an optimized database query having an optimized query syntax that is distinct from a query syntax of the database query; and executing the optimized database query against the multi-tenant database system to retrieve the data.
-
-
10. A system comprising:
-
a processor and a memory; a communications interface to a multi-tenant database system having a relational data store and a non-relational data store implemented therein; a request processor to receive a request specifying data to be retrieved from the multi-tenant database system; a customer schema processor to retrieve, based on the request, one or more locations of the data to be retrieved; a query layer agent to generate a database query based on the request, wherein the database query specifies a plurality of data elements to be retrieved, the plurality of data elements including one or more data elements residing within the non-relational data store of the multi-tenant database system and one or more other data elements residing within the relational data store of the multi-tenant database system; a query optimizer to optimize the database query to generate an optimized database query having an optimized query syntax that is distinct from a query syntax of the database query; and wherein the query layer agent to execute the optimized database query against the multi-tenant database system to retrieve the data.
-
Specification