×

System and methods of improving a multi-tenant database query using contextual knowledge about non-homogeneously distributed tenant data

  • US 9,275,105 B2
  • Filed: 09/14/2012
  • Issued: 03/01/2016
  • Est. Priority Date: 09/23/2003
  • Status: Active Grant
First Claim
Patent Images

1. A computer program product, comprising a non-transitory computer usable medium having a computer readable program code embodied therein, the computer readable program code configured to be executed to cause a computer to implement a method of improving a query in a database, the method comprising:

  • for each tenant of a plurality of tenants of a database system, analyzing tenant specific data included in a data table for the tenant;

    based on the analyzing, deriving by the database system metadata describing the tenant specific data;

    storing by the database system a metadata table specific to the tenant, the metadata table storing the derived metadata describing the tenant specific data;

    receiving by the database system a query for retrieving at least a portion of the tenant specific data included in the data table for a first one of the tenants;

    in response to the received query, retrieving by the database system the stored metadata table specific to the first one of the tenants, wherein the metadata table is stored by the database system prior to the receipt of the query;

    processing the retrieved metadata table specific to the first one of the tenants to determine a particular retrieval path to be used for retrieving the at least a portion of the tenant specific data;

    generating a second query to include the retrieval path, such that the second query is customized for the tenant specific data of the first one of the tenants; and

    executing, in place of the query, the second query to retrieve the at least a portion of the tenant specific data.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×