Efficient Optimization of a Class of Relational Expressions

A. V. Aho*, Y. Sagiv, J. D. Ullman

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

132 Scopus citations

Abstract

The design of several database query languages has been influenced by Codd's relational algebra. This paper discusses the difficulty of optimizing queries based on the relational algebra operations select, project, and join. A matrix, called a tableau, is proposed as a useful device for representing the value of a query, and optimization of queries is couched in terms of finding a minimal tableau equivalent to a given one. Functional dependencies can be used to imply additional equivalences among tableaux. Although the optimization problem is NP-complete, a polynomial time algorithm exists to optimize tableaux that correspond to an important subclass of queries.

Original languageEnglish
Pages (from-to)435-454
Number of pages20
JournalACM Transactions on Database Systems
Volume4
Issue number4
DOIs
StatePublished - 1 Dec 1979
Externally publishedYes

Keywords

  • NP-completeness
  • equivalence of queries
  • query optimization
  • relational algebra
  • relational database
  • tableaux

Fingerprint

Dive into the research topics of 'Efficient Optimization of a Class of Relational Expressions'. Together they form a unique fingerprint.

Cite this