METHOD OF IMPROVING A QUERY TO A DATABASE SYSTEM
First Claim
1. A method of improving a query in a database, the method comprising:
- receiving a query directed to the database, the database storing data specific to each one of a plurality of tenants such that at least two of the tenants store at least a portion of data specific to the at least two tenants in a common table within the database and wherein each tenant is permitted access only to data associated with that tenant; and
providing, in place of the query, an improved query, the improved query determined based at least in part upon the query received and a set of contextual information, the contextual information describing a characteristic of the data specific to at least one of a plurality of tenants, thereby enabling constructing the improved query to be aware of the data specific to a tenant to which the improved query will be addressed.
1 Assignment
0 Petitions
Accused Products
Abstract
In embodiments, methods and systems for improving a query in a database system are provided. These method and system embodiments can enable greater contextual knowledge about the types and use of data in tables underlying a relational database to be employed to improve query efficiency. By employing contextual information, embodiments can provide improved queries and/or make recommendations to a query optimizer of a database system to improve its operation based upon knowledge of the data and/or application gathered. Embodiments can be useful in improving query performance in multi-tenant database systems.
-
Citations
20 Claims
-
1. A method of improving a query in a database, the method comprising:
-
receiving a query directed to the database, the database storing data specific to each one of a plurality of tenants such that at least two of the tenants store at least a portion of data specific to the at least two tenants in a common table within the database and wherein each tenant is permitted access only to data associated with that tenant; and
providing, in place of the query, an improved query, the improved query determined based at least in part upon the query received and a set of contextual information, the contextual information describing a characteristic of the data specific to at least one of a plurality of tenants, thereby enabling constructing the improved query to be aware of the data specific to a tenant to which the improved query will be addressed. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A method for transmitting code to improve a query in a database over a machine accessible transmission medium, the method including:
-
transmitting code that causes one or more processors to receive a query directed to the database, the database storing data specific to each one of a plurality of tenants such that at least two of the tenants store at least a portion of data specific to the at least two tenants in a common table within the database; and
transmitting code that causes one or more processors to provide, in place of the query, an improved query, the improved query determined based at least in part upon the query received and a set of contextual information, the contextual information describing a characteristic of the data specific to at least one of a plurality of tenants, thereby enabling constructing the improved query to be aware of the data specific to a tenant to which the improved query will be addressed.
-
Specification