1. A method comprising: 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.