×

Dynamic query optimization using partial information

  • US 5,335,345 A
  • Filed: 04/11/1990
  • Issued: 08/02/1994
  • Est. Priority Date: 04/11/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. A method applied post-compilation time for operating a data processing system having a relational database to dynamically optimize and execute a set of operations forming all or part of a query, based on the state of the data at the time of execution, said set comprising a plurality of operations and said method comprising, in sequential order,at the time said set of operations is to be executed, statistically sampling at least one relation resident in said relational database of said data processing system on which said set of operations is to be executed,first executing an algorithm utilizing the statistical samples obtained as a result of said sampling step to determine the order in which said plurality of operations are to be executed based on the samples obtained during said sampling step to optimize said set of operations based on the state of the data at the time of said sampling step, said first executing step including executing the set of operations on the samples in at least one order of execution and selecting the order of execution that results in the best performance for said data processing system, andsecond executing on said data processing system said set of operations on said at least one relation in an order selected by said first executing step.

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