Encyclopedia of Database Systems

2018 Edition
| Editors: Ling Liu, M. Tamer Özsu

Multi-query Optimization

  • Prasan Roy
  • S. Sudarshan
Reference work entry
DOI: https://doi.org/10.1007/978-1-4614-8265-9_239

Synonyms

Common subexpression elimination; Global query optimization; Multiple query optimization; Optimization of DAG-structured query evaluation plans

Definition

Multi-query optimization is the task of generating an optimal combined evaluation plan for a collection of multiple queries. Unlike traditional single-query optimization, multi-query optimization can exploit commonalities between queries, for example by computing common subexpressions (i.e., subexpressions that are shared by multiple queries) once and reusing them, or by sharing scans of relations from disk.

Historical Background

Early work on multi-query optimization includes work by Sellis [11], Park and Segev [7] and Rosenthal and Chakravarthy [9]. Shim et al. [12] consider heuristics to reduce the cost of multi-query optimization. However, even with heuristics, these approaches are extremely expensive for situations where each query may have a large number of alternative evaluation plans.

Subramanian and Venkataraman [13...

This is a preview of subscription content, log in to check access.

Recommended Reading

  1. 1.
    Dalvi NN, Sanghai SK, Roy P, Sudarshan S. Pipelining in multi-query optimization. J Comput Syst Sci. 2003;66(4):728–62.MathSciNetzbMATHCrossRefGoogle Scholar
  2. 2.
    Diwan AA, Sudarshan S, Thomas D. Scheduling and caching in multi-query optimization. In: Proceedings of the 13th International Conference on Management of Data; 2006.Google Scholar
  3. 3.
    Fan W, Yu JX, Lu H, Lu J, Rastogi R. Query translation from XPATH to SQL in the presence of recursive DTDs. In: Proceedings of the 31st International Conference on Very Large Data Bases; 2005. p. 337–48.Google Scholar
  4. 4.
    Graefe G, McKenna WJ. The volcano optimizer generator: extensibility and efficient search. In: Proceedings of the 9th International Conference on Data Engineering; 1993. p. 209–18.Google Scholar
  5. 5.
    Krishnamurthy S, Wu C, Franklin M. On-the-fly sharing for streamed aggregation. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 2006. p. 623–34.Google Scholar
  6. 6.
    Mistry H, Roy P, Sudarshan S, Ramamritham K. Materialized view selection and maintenance using multi-query optimization. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 2001. p. 307–18.Google Scholar
  7. 7.
    Park J, Segev A. Using common subexpressions to optimize multiple queries. In: Proceedings of the 4th International Conference on Data Engineering; 1988. p. 311–9.Google Scholar
  8. 8.
    Rao J, Ross KA. Reusing invariants: a new strategy for correlated queries. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 1998. p. 37–48.CrossRefGoogle Scholar
  9. 9.
    Rosenthal A, Chakravarthy US. Anatomy of a modular multiple query optimizer. In: Proceedings of the 14th International Conference on Very Large Data Bases; 1988. p. 230–9.Google Scholar
  10. 10.
    Roy P, Seshadri S, Sudarshan S, Bhobe S. Efficient and extensible algorithms for multi query optimization. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 2000. p. 249–60.Google Scholar
  11. 11.
    Sellis TK. Multiple query optimization. ACM Trans Database Syst. 1988;13(1):23–52.CrossRefGoogle Scholar
  12. 12.
    Shim K, Sellis T, Nau D. Improvements on a heuristic algorithm for multiple-query optimization. Data Knowl Eng. 1994;12(2):197–222.CrossRefGoogle Scholar
  13. 13.
    Subramanian SN, Venkataraman S. Cost-based optimization of decision support queries using transient views. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 1998. p. 319–30.CrossRefGoogle Scholar
  14. 14.
    Zhou J, Larson PÅ, Freytag JC, Lehner W. Efficient exploitation of similar subexpressions for query processing. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 2007. p. 533–44.Google Scholar

Copyright information

© Springer Science+Business Media, LLC, part of Springer Nature 2018

Authors and Affiliations

  1. 1.Sclera, Inc.WalnutUSA
  2. 2.Indian Institute of TechnologyBombayIndia

Section editors and affiliations

  • Evaggelia Pitoura
    • 1
  1. 1.Department of Computer Science and EngineeringUniversity of IoanninaIoanninaGreece