Patent · US Expired

Database system with methods for optimizing performance of correlated subqueries by reusing invariant results of operator tree

US6341281B1 · kind B1 · utility

206Cited by
56References
35Claims
0Family size

Assignee

Inventors

Key dates

Filing dateApr 2, 1999
Grant dateJan 22, 2002
Priority date
Expiry dateApr 2, 2019

Classification

  • Technology area (CPC Y)Emerging Cross-Sectional Technologies
  • CPC primaryY10S707/99934
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

Database system and methods are described for improving execution speed of database queries (e.g., for decision support) by optimizing execution of nested queries or “subqueries,” which are commonly used in client/server database environments. In particular, the basic approach employed is to recognize the part of the subquery that is not related to the outer references and cache the result of that part after its first execution. Later, the result can be reused and combined with the result of the rest of the subquery that is changing for each iteration. Methods are employed to recognize the invariant part of a data flow tree, and to restructure the evaluation plan to reuse the stored intermediate result. An efficient method is used to teach an existing join optimizer to understand the invariant feature and thus allow it to be able to generate better join plans in the new context. When query rewriting is not possible, therefore, the invariant technique provides significantly better performance than the traditional nested iteration method.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.