article · Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2024
Adaptive Recursive Query Optimization
Anna Herlihy, Guillaume Martres, Anastasia Ailamaki, Martin Odersky
Cited by 3Open access
Abstract
Performance-critical industrial applications, including large-scale program, network, and distributed system analyses, are increasingly reliant on recursive queries for data analysis. Yet traditional relational algebra-based query optimization techniques do not scale well to recursive query processing due to the iterative nature of query evaluation, where relation cardinalities can change unpredictably during the course of a single query execution. To avoid error-prone cardinality estimation, adaptive query processing techniques use runtime information to inform query optimization, but these systems are not optimized for the specific needs of recursive query processing. In this paper, we introduce Adaptive Metaprogramming, an innovative technique that shifts recursive query optimization and code generation from compile-time to runtime using principled metaprogramming, enabling dynamic optimization and re-optimization before and after query execution has begun. We present a custom join-ordering optimization applicable at multiple stages during query compilation and execution. Through Carac, a custom Datalog engine, we evaluate the optimization potential of Adaptive Metaprogramming and show unoptimized recursive query execution time can be improved by three orders of magnitude and hand-optimized queries by 6x.
Cite this paper
Herlihy, A., Martres, G., Ailamaki, A., & Odersky, M. (2024). Adaptive Recursive Query Optimization. Infoscience (Ecole Polytechnique Fédérale de Lausanne), 368–381. https://doi.org/10.1109/icde60146.2024.00035
Herlihy, Anna, et al. “Adaptive Recursive Query Optimization.” Infoscience (Ecole Polytechnique Fédérale de Lausanne), 2024, pp. 368–81, https://doi.org/10.1109/icde60146.2024.00035.
Herlihy, Anna, Guillaume Martres, Anastasia Ailamaki, and Martin Odersky. 2024. “Adaptive Recursive Query Optimization.” Infoscience (Ecole Polytechnique Fédérale de Lausanne): 368–81. https://doi.org/10.1109/icde60146.2024.00035.
Herlihy, A. et al. (2024) ‘Adaptive Recursive Query Optimization’, Infoscience (Ecole Polytechnique Fédérale de Lausanne), pp. 368–381. Available at: https://doi.org/10.1109/icde60146.2024.00035.
@article{herlihy2024adaptive,
title = {{Adaptive Recursive Query Optimization}},
author = {Herlihy, Anna and Martres, Guillaume and Ailamaki, Anastasia and Odersky, Martin},
journal = {Infoscience (Ecole Polytechnique Fédérale de Lausanne)},
pages = {368--381},
year = {2024},
doi = {10.1109/icde60146.2024.00035}
}Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.
Related papers
ИСПОЛЬЗОВAНИЕ ПОТЕНЦИAЛA СОЦИAЛЬНЫХ ПAРТНЕРОВ В ПОДГОТОВКЕ БУДУЩИХ ПЕДAГОГОВ
Б.Б. Атабекова · Habaršy. Pedagogika ġylymdary seriâsy · 2024
Cited by 0Open access
Susquehanna Chorale Spring Concert "Roots and Wings"
Deborah Hawkins · 2017
Cited by 0
Using DataGrid Control to Realize DataBase of Querying in VB6.0
Shu Hu · Modern Computer · 2000
Cited by 0
Study and Two Types of Typical Usage of DataGrid Web Server Control
Luo Hai-tao · Modern Computer · 2005
Cited by 0
STKVS: secure technique for keyframes-based video summarization model
Parul Saini, Krishan Berwal, Shamal Kashid et al. · Multimedia Tools and Applications · 2024
Cited by 11
PACWON: A parallelizing compiler for workstations on a network
Dibyendu Kumar Das, Partha Pratim Das · Journal of Systems Architecture · 1998
Cited by 0
SLA Aware Optimized Task Scheduling Model for Faster Execution of Workloads Among Federated Clouds
Divya Kshatriya, Vijayalakshmi A. Lepakshi · Wireless Personal Communications · 2024
Cited by 6