Skip to main content

Multi-query Optimization

  • Reference work entry
  • First Online:
Encyclopedia of Database Systems

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 via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 4,499.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 6,499.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Recommended Reading

  1. Dalvi NN, Sanghai SK, Roy P, Sudarshan S. Pipelining in multi-query optimization. J Comput Syst Sci. 2003;66(4):728–62.

    Article  MathSciNet  MATH  Google Scholar 

  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. 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. 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. 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. 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. 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. 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.

    Article  Google Scholar 

  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. 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. Sellis TK. Multiple query optimization. ACM Trans Database Syst. 1988;13(1):23–52.

    Article  Google Scholar 

  12. Shim K, Sellis T, Nau D. Improvements on a heuristic algorithm for multiple-query optimization. Data Knowl Eng. 1994;12(2):197–222.

    Article  Google Scholar 

  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.

    Article  Google Scholar 

  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 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Prasan Roy .

Editor information

Editors and Affiliations

Section Editor information

Rights and permissions

Reprints and permissions

Copyright information

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

About this entry

Check for updates. Verify currency and authenticity via CrossMark

Cite this entry

Roy, P., Sudarshan, S. (2018). Multi-query Optimization. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_239

Download citation

Publish with us

Policies and ethics