25. A system for improving a query in a multi-tenant database system that is to be performed in the context of a tenant-specific filter on a tenant identifier, the system comprising: a processor; a network interface; and a computer-readable medium tangibly embodied with instructions capable of configuring the processor to: receive at a network interface of a server an original query, wherein the original query is associated with data within a database as identified by the tenant identifier, and wherein the database includes at least a first index and a second index, further wherein the database stores data for multiple tenants that are unrelated organizations and have different database schemas, the data corresponding to each tenant having tenant-specific characteristics; retrieve, using a processor of the server, metadata associated with the data, wherein at least a portion of the data is stored in a common table within the database system; determine, using the processor, a tenant-selective query syntax by analyzing at least metadata generated from tenant-specific characteristics; analyze, using the processor, metadata generated from information about the organization to which the original query corresponds; and generate, using the processor, an improved query using the query syntax, wherein the improved query is based at least in part upon the original query and a result of a join between a first number of rows associated with the first index and a second number of rows associated with the second index and the analysis of the metadata.
25. A system for improving a query in a multi-tenant database system that is to be performed in the context of a tenant-specific filter on a tenant identifier, the system comprising: a processor; a network interface; and a computer-readable medium tangibly embodied with instructions capable of configuring the processor to: receive at a network interface of a server an original query, wherein the original query is associated with data within a database as identified by the tenant identifier, and wherein the database includes at least a first index and a second index, further wherein the database stores data for multiple tenants that are unrelated organizations and have different database schemas, the data corresponding to each tenant having tenant-specific characteristics; retrieve, using a processor of the server, metadata associated with the data, wherein at least a portion of the data is stored in a common table within the database system; determine, using the processor, a tenant-selective query syntax by analyzing at least metadata generated from tenant-specific characteristics; analyze, using the processor, metadata generated from information about the organization to which the original query corresponds; and generate, using the processor, an improved query using the query syntax, wherein the improved query is based at least in part upon the original query and a result of a join between a first number of rows associated with the first index and a second number of rows associated with the second index and the analysis of the metadata. 33. The system of claim 25 , wherein the first and second indices are both standard b-tree indices stored in the common table.