Abstract:
In accordance with embodiments, there are provided mechanisms and methods for facilitating dynamic creation of multi-column index tables and management of customer queries in an on-demand services environment in a multi-tenant environment according to one embodiment. In one embodiment and by way of example, a method includes receiving, at a computing device, a query having one or more filters relating to one or more data type columns of database at a primary table. The primary table may include an object table. The method may further include calculating a hash number based on an index identifier corresponding to the one or more filters, and determining a first key at a secondary table based on the calculated hash number. The secondary table may include an index table, and the first key may be mapped with a second key corresponding to one or more rows at the primary table. The method may further include obtaining data from the one or more rows of the primary table, where the data includes filtered data corresponding to the one or more data type columns.