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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
Code is available here: https://github.com/vasudevrb/mqo.
References
Bachhav, A., Kharat, V., Shelar, M.: An efficient query optimizer with materialized intermediate views in distributed and cloud environment. In: Tehnički glasnik (2021)
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)
Dursun, K., Binnig, C., Cetintemel, U., Kraska, T.: Revisiting reuse in main memory database systems. In: Proceedings of ACM SIGMOD (2017)
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)
Giannikis, G., Makreshanski, D., Alonso, G., Kossmann, D.: Shared workload optimization. In: Proceedings of the VLDB Endowment (2014)
Ge, X.: LSShare: an efficient multiple query optimization system in the cloud. In: Distributed and Parallel Databases (2014)
Jonathan, A., Chandra, A., Weissman, J.: Multi-query optimization in wide-area streaming analytics. In: Proceedings of ACM SIGMOD (2018)
Jindal, A., Karanasos, K., Rao, S., Patel, H.: Selecting subexpressions to materialize at datacenter scale. In: Proceedings of the VLDB Endowment (2018)
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)
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)
Perez, L., Jermaine, C.: History-aware query optimization with materialized intermediate views. In: Proceedings of the ICDE (2014)
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)
Roy, P., Seshadri, S., Sudarshan, S., Bhobe, S.: Efficient and extensible algorithms for multi query optimization. In: Proceedings of ACM SIGMOD (2000)
Sellis, T.: Multiple-query optimization. In: Proceedings of ACM SIGMOD (1988)
Silva, Y., Larson, P.A., Zhou, J.: Exploiting common subexpressions for cloud query processing. In: Proceedings of the ICDE (2012)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)