Selecting and using views to compute aggregate queries

  • Authors:
  • Foto Afrati;Rada Chirkova

  • Affiliations:
  • Electrical and Computing Engineering, National Technical University of Athens, 157 73 Athens, Greece;Department of Computer Science, North Carolina State University, 890 Oval Drive, Raleigh, NC 27695-8206, USA

  • Venue:
  • Journal of Computer and System Sciences
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We consider a workload of aggregate queries and investigate the problem of selecting materialized views that (1) provide equivalent rewritings for all the queries, and (2) are optimal, in that the cost of evaluating the query workload is minimized. We consider conjunctive views and rewritings, with or without aggregation; in each rewriting, only one view contributes to computing the aggregated query output. We look at query rewriting using existing views and at view selection. In the query-rewriting problem, we give sufficient and necessary conditions for a rewriting to exist. For view selection, we prove complexity results. Finally, we give algorithms for obtaining rewritings and selecting views.