×

Static query optimization

  • US 9,251,204 B2
  • Filed: 06/23/2011
  • Issued: 02/02/2016
  • Est. Priority Date: 06/23/2010
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for tuning queries for a multi-tenant database system, the method comprising:

  • retrieving actual statistics associated with data stored on one or more servers in the multi-tenant database system, wherein the data is associated with one or more tenants of the multi-tenant database system;

    selecting a subset of the actual statistics, wherein the subset of the actual statistics is related to tenants having a data trait targeted for optimization, wherein a tenant having a data trait targeted for optimization has at least one of the following data traits;

    (1) a high volume of transactions, (2) a high number of transactions involving large file sizes, (3) a high number of resource-intensive transactions, (4) high utilization of a rarely-used column or table, or (5) high utilization of a rarely-used resource;

    determining, using one or more processors associated with the one or more servers, synthetic statistics based on the subset of the actual statistics, wherein the synthetic statistics are derived from the subset of actual statistics by modifying one or more aspects of the data based on a subset of the tenants of the multi-tenant database system, the subset of tenants having the data trait targeted for optimization, and then re-calculating statistical data to generate the synthetic statistics;

    receiving an original query transmitted to the multi-tenant database system by a user associated with a tenant that has the data trait targeted for optimization, wherein the original query operates upon data associated with the tenant; and

    determining, using the processor, an optimal query plan based on the original query and the synthetic statistics.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×