Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

What Happens When Two Multi-Query Optimization Paradigms Combine?

A Hybrid Shared Sub-Expression (SSE) and Materialized View Reuse (MVR) Study

  • Conference paper
  • First Online:
Advances in Databases and Information Systems (ADBIS 2023)

Abstract

Querying in isolation lacks the potential of reusing results, that ends up wasting computational resources. Multi-Query Optimization (MQO) addresses this challenge by devising a shared execution strategy across queries, with two generally used strategies: batched or cached. These strategies are shown to improve performance, but hardly any study explores the combination of both. In this work we explore such a hybrid MQO, combining batching (Shared Sub-Expression) and caching (Materialized View Reuse) techniques. Our hybrid-MQO system merges batched query results as well as caches the intermediate results, thereby any new query is given a path within the previous plan as well as reusing the results. To study the influence of batching, we vary the factor - derivability - which represents the similarity of the results within a query batch. Similarly, we vary the cache sizes to study the influence of caching. Moreover, we also study the role of different database operators in the performance of our hybrid system. The results suggest that, depending on the individual operators, our hybrid method gains a speed-up between 4\(\times \) to a slowdown of 2\(\times \) from using MQO techniques in isolation. Furthermore, our results show that workloads with a generously sized cache that contain similar queries benefit from using our hybrid method, with an observed speed-up of 2\(\times \) over sequential execution in the best case.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Similar content being viewed by others

Notes

  1. 1.

    Code is available here: https://github.com/vasudevrb/mqo.

References

  1. Bachhav, A., Kharat, V., Shelar, M.: An efficient query optimizer with materialized intermediate views in distributed and cloud environment. In: Tehnički glasnik (2021)

    Google Scholar 

  2. Broneske, D., Köppen, V., Saake, G., Schäler, M.: Efficient evaluation of multi-column selection predicates in main-memory. IEEE Trans. Knowl. Data Eng. 31(7), 1296–1311 (2018)

    Article  Google Scholar 

  3. Dursun, K., Binnig, C., Cetintemel, U., Kraska, T.: Revisiting reuse in main memory database systems. In: Proceedings of ACM SIGMOD (2017)

    Google Scholar 

  4. Gurumurthy, B., Hajjar, I., Broneske, D., Pionteck, T., Saake, G.: When vectorwise meets hyper, pipeline breakers become the moderator. In: ADMS@ VLDB, pp. 1–10 (2020)

    Google Scholar 

  5. Giannikis, G., Makreshanski, D., Alonso, G., Kossmann, D.: Shared workload optimization. In: Proceedings of the VLDB Endowment (2014)

    Google Scholar 

  6. Ge, X.: LSShare: an efficient multiple query optimization system in the cloud. In: Distributed and Parallel Databases (2014)

    Google Scholar 

  7. Jonathan, A., Chandra, A., Weissman, J.: Multi-query optimization in wide-area streaming analytics. In: Proceedings of ACM SIGMOD (2018)

    Google Scholar 

  8. Jindal, A., Karanasos, K., Rao, S., Patel, H.: Selecting subexpressions to materialize at datacenter scale. In: Proceedings of the VLDB Endowment (2018)

    Google Scholar 

  9. Michiardi, P., Carra, D. Migliorini, S.: In-memory caching for multi-query optimization of data-intensive scalable computing workloads. In: Proceedings of DARLI-AP (2019)

    Google Scholar 

  10. Makreshanski, D., Giannikis, G., Alonso, G., Kossmann, D.: Many-query join: efficient shared execution of relational joins on modern hardware. In: Proceedings of the VLDB Endowment (2018)

    Google Scholar 

  11. Perez, L., Jermaine, C.: History-aware query optimization with materialized intermediate views. In: Proceedings of the ICDE (2014)

    Google Scholar 

  12. Rehrmann, R., Binnig, C., Böhm, A., Kim, K., Lehner, W., Rizk, A.: Oltpshare: the case for sharing in oltp workloads. In: Proceedings of the VLDB Endowment (2018)

    Google Scholar 

  13. Roy, P., Seshadri, S., Sudarshan, S., Bhobe, S.: Efficient and extensible algorithms for multi query optimization. In: Proceedings of ACM SIGMOD (2000)

    Google Scholar 

  14. Sellis, T.: Multiple-query optimization. In: Proceedings of ACM SIGMOD (1988)

    Google Scholar 

  15. Silva, Y., Larson, P.A., Zhou, J.: Exploiting common subexpressions for cloud query processing. In: Proceedings of the ICDE (2012)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Bala Gurumurthy .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gurumurthy, B., Bidarkar, V.R., Broneske, D., Pionteck, T., Saake, G. (2023). What Happens When Two Multi-Query Optimization Paradigms Combine?. In: Abelló, A., Vassiliadis, P., Romero, O., Wrembel, R. (eds) Advances in Databases and Information Systems. ADBIS 2023. Lecture Notes in Computer Science, vol 13985. Springer, Cham. https://doi.org/10.1007/978-3-031-42914-9_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-42914-9_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-42913-2

  • Online ISBN: 978-3-031-42914-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics