×

Statistics management for database querying

  • US 9,189,521 B2
  • Filed: 10/02/2013
  • Issued: 11/17/2015
  • Est. Priority Date: 06/21/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method of obtaining data from a database, the database including a query optimizer to generate a query plan based on on-demand database statistics, the method comprising:

  • obtaining model database statistics representative of an expected state of the database in the future, the model database statistics being generated based on a subset of expected utilization information for a tenant supported by the database, the expected utilization information representing the tenant'"'"'s likely usage of a table in the database at a time in the future, wherein generating the model database statistics comprises;

    obtaining a subset of database statistics that are most likely to influence the query optimizer; and

    generating the model database statistics that are likely to influence the query optimizer based on the subset of database statistics and the subset of the expected utilization information; and

    modifying on-demand database statistics maintained by the database to reflect the model database statistics, wherein the query plan generated by the database to obtain the data based on the on-demand database statistics is influenced by the model database statistics.

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