Algorithms for rewriting aggregate queries using views

Sara Cohen, Werner Nutt, Alexander Serebrenik

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

26 Scopus citations

Abstract

Queries involving aggregation are typical in database applications. One of the main ideas to optimize the execution of an aggregate query is to reuse results of previously answered queries. This leads to the problem of rewriting aggregate queries using views. Due to a lack of theory, algorithms for this problem were rather ad-hoc. They were sound, but were not proven to be complete. Recently we have given syntactic characterizations for the equivalence of aggregate queries and applied them to decide when there exist rewritings. However, these decision procedures do not lend themselves immediately to an implementation. In this paper, we present practical algorithms for rewriting queries with count and sum. Our algorithms are sound. They are also complete for important cases. Our techniques can be used to improve well-known procedures for rewriting non-aggregate queries. These procedures can then be adapted to obtain algorithms for rewriting queries with min and max. The algorithms presented are a basis for realizing optimizers that rewrite queries using views.

Original languageAmerican English
Title of host publicationCurrent Issues in Databases and Information Systems - East-European Conference on Advances in Databases and Information Systems Held Jointly with International Conference on Database Systems for Advanced Applications, ADBIS-DASFAA 2000, Proceedings
EditorsJulius Stuller, Jaroslav Pokorny, Yoshifumi Masunaga, Bernhard Thalheim
PublisherSpringer Verlag
Pages65-78
Number of pages14
ISBN (Print)3540679774, 9783540679776
DOIs
StatePublished - 2000
EventEast-European Conference on Advances in Databases and Information Systems Held Jointly with International Conference on Database Systems for Advanced Applications, ADBIS-DASFAA 2000 - Prague, Czech Republic
Duration: 5 Sep 20009 Sep 2000

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume1884
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceEast-European Conference on Advances in Databases and Information Systems Held Jointly with International Conference on Database Systems for Advanced Applications, ADBIS-DASFAA 2000
Country/TerritoryCzech Republic
CityPrague
Period5/09/009/09/00

Bibliographical note

Publisher Copyright:
© Springer-Verlag Berlin Heidelberg 2000.

Fingerprint

Dive into the research topics of 'Algorithms for rewriting aggregate queries using views'. Together they form a unique fingerprint.

Cite this