Methods and systems for determining candidates for a custom index in a multi-tenant database environment
First Claim
1. A method performed by a custom index recommender system, the method comprising:
- capturing a query that is directed to a multi-tenant database;
determining whether the captured query is a candidate for a custom index by a query identification tool of the system;
determining operators used by the captured query if the query is a candidate;
determining data types of the database used by the captured query if the query is a candidate;
determining whether there is a current custom index for the operator and data types used by the captured query if the query is a candidate;
writing the captured query to a query table of custom index candidates of the system, the query table containing a plurality of queries that have been selected for a custom index, an identifier for each query, and filters used by each query;
selecting the captured query from the query table based on the determined operators, data types, and the determined current custom indexes; and
generating a new custom index for the selected query based on the determined operators, data types, and the determined custom indexes.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and systems are described for determining candidates for a custom index in a multi-tenant database environment. In one embodiment, a method includes, capturing a query that is directed to a multi-tenant database, determining whether the captured query is a candidate for an additional filter, determining operators used by the captured query if the query is a candidate, determining data types of the database used by the captured query if the query is a candidate, determining whether there is a current filter for the operator and data types used by the captured query if the query is a candidate, selecting the captured query based on the determined operators, data types, and the determined current filters, and generating a custom index for the selected query.
-
Citations
20 Claims
-
1. A method performed by a custom index recommender system, the method comprising:
-
capturing a query that is directed to a multi-tenant database; determining whether the captured query is a candidate for a custom index by a query identification tool of the system; determining operators used by the captured query if the query is a candidate; determining data types of the database used by the captured query if the query is a candidate; determining whether there is a current custom index for the operator and data types used by the captured query if the query is a candidate; writing the captured query to a query table of custom index candidates of the system, the query table containing a plurality of queries that have been selected for a custom index, an identifier for each query, and filters used by each query; selecting the captured query from the query table based on the determined operators, data types, and the determined current custom indexes; and generating a new custom index for the selected query based on the determined operators, data types, and the determined custom indexes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A non-transitory machine-readable medium carrying one or more sequences of instructions for validating queries in a multi-tenant database system, which instructions, when executed by one or more processors, cause the one or more processors to carry out operations comprising:
-
capturing a query that is directed to a multi-tenant database; determining whether the captured query is a candidate for a custom index; determining operators used by the captured query if the query is a candidate; determining data types of the database used by the captured query if the query is a candidate; determining whether there is a current custom index for the operator and data types used by the captured query if the query is a candidate; writing the captured query to a query table of custom index candidates of the system, the query table containing a plurality of queries that have been selected for a custom index, an identifier for each query, and filters used by each query; selecting the captured query from the query table based on the determined operators, data types, and the determined current filters; and generating a new custom index for the selected query based on the determined operators, data types, and the determined custom indexes. - View Dependent Claims (15, 16, 17)
-
-
18. A custom index recommender hardware system, the system comprising:
-
a processor; and one or more stored sequences of instructions which, when executed by the processor, cause the processor to implement processes comprising; a run-time query identifier to capture a query that is directed to a multi-tenant database and to determine whether the captured query is a candidate for a custom index; a filter analyzer to determine operators used by the captured query if the query is a candidate, to determine data types of the database used by the captured query if the query is a candidate, to determine whether there is a current custom index for the operator and data types used by the captured query if the query is a candidate, and to write the captured query to a query table of custom index candidates of the apparatus, the query table containing a plurality of queries that have been selected for a custom index, an identifier for each query, and filters used by each query; and a custom index generator to select the captured query based on the determined operators, data types, and the determined current filters, and to generate a custom index for the selected query based on the determined operators, data types, and the determined custom indexes. - View Dependent Claims (19, 20)
-
Specification