Spring til hovednavigatio Spring til søgning Spring til hovedindhold

Efficient exploitation of similar subexpressions for query processing

  • Jingren Zhou*
  • , Per Ake Larson
  • , Johann Christoph Freytag
  • , Wolfgang Lehner
  • *Corresponding author af dette arbejde

Publikation: Bidrag til bog/antologi/rapport/konference proceeding › Konferenceartikel i proceeding › Forskning › peer review

Abstract

Complex queries often contain common or similar subexpressions, either within a single query or among multiple queries submitted as a batch. If so, query execution time can be improved by evaluating a common subexpression once and reusing the result in multiple places. However, current query optimizers do not recognize and exploit similar subexpressions, even within the same query. We present an efficient, scalable, and principled solution to this long-standing optimization problem. We introduce a light-weight and effective mechanism to detect potential sharing opportunities among expressions. Candidate covering subexpressions are constructed and optimization is resumed to determine which, if any, such subexpressions to include in the final query plan. The chosen subexpression(s) are computed only once and the results are reused to answer other parts of queries. Our solution automatically applies to optimization of query batches, nested queries, and maintenance of multiple materialized views. It is the first comprehensive solution covering all aspects of the problem: detection, construction, and cost-based optimization. Experiments on Microsoft SQL Server show significant performance improvements with minimal overhead.

OriginalsprogEngelsk
TitelSIGMOD 2007 : Proceedings of the ACM SIGMOD International Conference on Management of Data
Antal sider12
Publikationsdato2007
Sider533-544
ISBN (Trykt)1595936866, 9781595936868
DOI
StatusUdgivet - 2007
Udgivet eksterntJa
BegivenhedSIGMOD 2007: ACM SIGMOD International Conference on Management of Data - Beijing, Kina
Varighed: 12 jun. 2007 → 14 jun. 2007

Konference

KonferenceSIGMOD 2007: ACM SIGMOD International Conference on Management of Data
Land/OmrådeKina
ByBeijing
Periode12/06/2007 → 14/06/2007
SponsorACM Special Interest Group on Management of Data, SIGMOD
NavnProceedings of the ACM SIGMOD International Conference on Management of Data
ISSN0730-8078

Fingeraftryk

Dyk ned i forskningsemnerne om 'Efficient exploitation of similar subexpressions for query processing'. Sammen danner de et unikt fingeraftryk.

Citationsformater