{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,30]],"date-time":"2026-09-30T06:33:28Z","timestamp":1790750008214,"version":"4.1.0"},"reference-count":57,"publisher":"Association for Computing Machinery (ACM)","issue":"3","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2025,6,17]]},"abstract":"<jats:p>Query performance prediction is used for scheduling, resource scaling, tenant placement, and various other use-cases. Here, the main goal is to estimate the execution time of a query without running it. To be effective, predictors need to be both accurate and fast. In contrast, neural networks that were used in recent work deliver very accurate predictions but suffer from high latency. In this work, we propose the Tuple Time Tree (T3), a new model that is both accurate and fast. It is orders of magnitude faster than comparable methods and has competitive accuracy to state-of-the-art approaches. Additionally, T3 works for new database instances without re-training because it generalizes across database instances. We achieve T3's speed by relying on a low-latency decision tree model that is compiled to native machine code. We maintain high accuracy with two novel techniques: pipeline-based query plan representation and tuple-centric prediction targets. In our pipeline-based query plan representation, T3 decomposes query plans into pipelines. Then, T3 predicts the execution time of each pipeline individually, instead of the whole query in one step. With tuple-centric prediction targets, T3 predicts the expected time it takes to push a single tuple through a pipeline. It then multiplies this predicted value by the input cardinality of the pipeline to estimate its execution time. As a result, T3 achieves state-of-the-art accuracy with a low-latency decision tree model.<\/jats:p>","DOI":"10.1145\/3725364","type":"journal-article","created":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:22:29Z","timestamp":1750281749000},"page":"1-27","source":"Crossref","is-referenced-by-count":7,"title":["T3: Accurate and Fast Performance Prediction for Relational Database Systems With Compiled Decision Trees"],"prefix":"10.1145","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-8887-2960","authenticated-orcid":false,"given":"Maximilian","family":"Rieger","sequence":"first","affiliation":[{"name":"Technical University of Munich, Munich, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5787-142X","authenticated-orcid":false,"given":"Thomas","family":"Neumann","sequence":"additional","affiliation":[{"name":"Technical University of Munich, Munich, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,18]]},"reference":[{"key":"e_1_2_2_1_1","first-page":"390","article-title":"Learning-based Query Performance Modeling and Prediction. In ICDE","author":"Akdere Mert","year":"2012","unstructured":"Mert Akdere, Ugur \u00c7etintemel, Matteo Riondato, Eli Upfal, and Stanley B. Zdonik. 2012. Learning-based Query Performance Modeling and Prediction. In ICDE, . IEEE Computer Society, 390-401.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.14778\/3611540.3611544"},{"key":"e_1_2_2_3_1","unstructured":"Simon Boehm. 2021. lleaves. https:\/\/github.com\/siboehm\/lleaves"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.14778\/3503585.3503588"},{"key":"e_1_2_2_5_1","first-page":"299","article-title":"A Novel Technique for Query Plan Representation Based on Graph Neural Nets. In DaWaK, (Lecture Notes in Computer Science, Vol. 14912)","author":"Chang Baoming","year":"2024","unstructured":"Baoming Chang, Amin Kamali, and Verena Kantere. 2024. A Novel Technique for Query Plan Representation Based on Graph Neural Nets. In DaWaK, (Lecture Notes in Computer Science, Vol. 14912). Springer, 299-314.","journal-title":"Springer"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066223"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007659"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1186\/s13677-021-00237-7"},{"key":"e_1_2_2_9_1","volume-title":"Hakan Hacig\u00fcm\u00fcs, and Jun'ichi Tatemura.","author":"Chi Yun","year":"2011","unstructured":"Yun Chi, Hyun Jin Moon, Hakan Hacig\u00fcm\u00fcs, and Jun'ichi Tatemura. 2011. SLA-tree: a framework for efficiently supporting SLA-based decisions in cloud computing. In EDBT, . ACM, , 129-140."},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-58907-4_6"},{"key":"e_1_2_2_11_1","volume-title":"Patterson","author":"Ganapathi Archana","year":"2009","unstructured":"Archana Ganapathi, Harumi A. Kuno, Umeshwar Dayal, Janet L. Wiener, Armando Fox, Michael I. Jordan, and David A. Patterson. 2009. Predicting Multiple Metrics for Queries: Better Decisions Enabled by Machine Learning. In ICDE, . IEEE Computer Society, 592-603."},{"key":"e_1_2_2_12_1","first-page":"13","article-title":"PQR: Predicting Query Execution Times for Autonomous Workload Management. In ICAC","author":"Gupta Chetan","year":"2008","unstructured":"Chetan Gupta, Abhay Mehta, and Umeshwar Dayal. 2008a. PQR: Predicting Query Execution Times for Autonomous Workload Management. In ICAC, . IEEE Computer Society, 13-22.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_13_1","first-page":"13","article-title":"PQR: Predicting Query Execution Times for Autonomous Workload Management. In ICAC","author":"Gupta Chetan","year":"2008","unstructured":"Chetan Gupta, Abhay Mehta, and Umeshwar Dayal. 2008b. PQR: Predicting Query Execution Times for Autonomous Workload Management. In ICAC, . IEEE Computer Society, 13-22.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/3524860.3539639"},{"key":"e_1_2_2_15_1","unstructured":"Benjamin Hilprecht and Carsten Binnig. 2022a. One Model to Rule them All: Towards Zero-Shot Learning for Databases. In CIDR . www.cidrdb.org."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.14778\/3551793.3551799"},{"key":"e_1_2_2_17_1","unstructured":"Benjamin Hilprecht Carsten Binnig Tiemo Bang Muhammad El-Hindi Benjamin H\u00e4ttasch Aditya Khanna Robin Rehrmann Uwe R\u00f6hm Andreas Schmidt Lasse Thostrup and Tobias Ziegler. 2020a. DBMS Fitting: Why should we learn what we already know?. In CIDR . www.cidrdb.org."},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.14778\/3384345.3384349"},{"key":"e_1_2_2_19_1","unstructured":"Guolin Ke Qi Meng Thomas Finley Taifeng Wang Wei Chen Weidong Ma Qiwei Ye and Tie-Yan Liu. 2017. LightGBM: A Highly Efficient Gradient Boosting Decision Tree. In NIPS . 3146-3154."},{"key":"e_1_2_2_20_1","volume-title":"Learned Cardinalities: Estimating Correlated Joins with Deep Learning. In CIDR, . www.cidrdb.org.","author":"Kipf Andreas","year":"2019","unstructured":"Andreas Kipf, Thomas Kipf, Bernhard Radke, Viktor Leis, Peter A. Boncz, and Alfons Kemper. 2019a. Learned Cardinalities: Estimating Correlated Joins with Deep Learning. In CIDR, . www.cidrdb.org."},{"key":"e_1_2_2_21_1","volume-title":"Estimating Cardinalities with Deep Sketches. In SIGMOD Conference. ACM","author":"Kipf Andreas","year":"2019","unstructured":"Andreas Kipf, Dimitri Vorona, Jonas M\u00fcller, Thomas Kipf, Bernhard Radke, Viktor Leis, Peter A. Boncz, Thomas Neumann, and Alfons Kemper. 2019b. Estimating Cardinalities with Deep Sketches. In SIGMOD Conference. ACM, , 1937-1940."},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.14778\/3654621.3654625"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-017-0480-7"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.14778\/3626292.3626302"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4615-6161-3_10"},{"key":"e_1_2_2_26_1","first-page":"853","article-title":"Increasing the Accuracy and Coverage of SQL Progress Indicators. In ICDE","author":"Luo Gang","year":"2005","unstructured":"Gang Luo, Jeffrey F. Naughton, Curt J. Ellmann, and Michael Watzke. 2005. Increasing the Accuracy and Coverage of SQL Progress Indicators. In ICDE, . IEEE Computer Society, 853-864.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.14778\/3551793.3551855"},{"key":"e_1_2_2_28_1","volume-title":"Kersten","author":"Manegold Stefan","year":"2002","unstructured":"Stefan Manegold, Peter A. Boncz, and Martin L. Kersten. 2002. Generic Database Cost Models for Hierarchical Memory Systems. In VLDB, . Morgan Kaufmann, 191-202."},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3542700.3542703"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342644"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/2977797.2977804"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342646"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1147\/sj.421.0098"},{"key":"e_1_2_2_34_1","first-page":"930","volume-title":"VLDB, . ACM","author":"Moerkotte Guido","unstructured":"Guido Moerkotte and Thomas Neumann. 2006. Analysis of Two Existing and One New Dynamic Programming Algorithm for the Generation of Optimal Bushy Join Trees without Cross Products. In VLDB, . ACM,, 930-941."},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/1687627.1687738"},{"key":"e_1_2_2_36_1","volume-title":"Freitag","author":"Neumann Thomas","year":"2020","unstructured":"Thomas Neumann and Michael J. Freitag. 2020. Umbra: A Disk-Based System with In-Memory Performance. In CIDR, . www.cidrdb.org."},{"key":"e_1_2_2_37_1","volume-title":"Adaptive Optimization of Very Large Join Queries. In SIGMOD Conference. ACM,, 677-692","author":"Neumann Thomas","year":"2018","unstructured":"Thomas Neumann and Bernhard Radke. 2018. Adaptive Optimization of Very Large Join Queries. In SIGMOD Conference. ACM,, 677-692."},{"key":"e_1_2_2_38_1","unstructured":"Andrew Ng. 2018. Machine learning yearning: Technical strategy for AI engineers in the era of deep learning. (2018)."},{"key":"e_1_2_2_39_1","first-page":"663","article-title":"Quickstep","volume":"11","author":"Patel Jignesh M.","year":"2018","unstructured":"Jignesh M. Patel, Harshad Deshmukh, Jianqiao Zhu, Navneet Potti, Zuyu Zhang, Marc Spehlmann, Hakan Memisoglu, and Saket Saurabh. 2018. Quickstep: A Data Platform Based on the Scaling-Up Approach. Proc. VLDB Endow., Vol. 11, 6 (2018), 663-676.","journal-title":"A Data Platform Based on the Scaling-Up Approach. Proc. VLDB Endow."},{"key":"e_1_2_2_40_1","volume-title":"Auto-WLM: Machine Learning Enhanced Workload Management in Amazon Redshift. In SIGMOD Conference Companion. ACM, , 225-237","author":"Saxena Gaurav","year":"2023","unstructured":"Gaurav Saxena, Mohammad Rahman, Naresh Chainani, Chunbin Lin, George Caragea, Fahim Chowdhury, Ryan Marcus, Tim Kraska, Ippokratis Pandis, and Balakrishnan (Murali) Narayanaswamy. 2023. Auto-WLM: Machine Learning Enhanced Workload Management in Amazon Redshift. In SIGMOD Conference Companion. ACM, , 225-237."},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3380584"},{"key":"e_1_2_2_42_1","first-page":"19","article-title":"LEO - DB2's LEarning Optimizer. In VLDB","author":"Stillger Michael","year":"2001","unstructured":"Michael Stillger, Guy M. Lohman, Volker Markl, and Mokhtar Kandil. 2001. LEO - DB2's LEarning Optimizer. In VLDB, . Morgan Kaufmann, 19-28.","journal-title":"Morgan Kaufmann"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368296"},{"key":"e_1_2_2_44_1","volume-title":"DeWitt","author":"Taft Rebecca","year":"2016","unstructured":"Rebecca Taft, Willis Lang, Jennie Duggan, Aaron J. Elmore, Michael Stonebraker, and David J. DeWitt. 2016. STeP: Scalable Tenant Placement for Managing Database-as-a-Service Deployments. In SoCC. ACM,, 388-400."},{"key":"e_1_2_2_45_1","first-page":"397","article-title":"Q-Cop: Avoiding bad query mixes to minimize client timeouts under heavy loads. In ICDE","author":"Tozer Sean","year":"2010","unstructured":"Sean Tozer, Tim Brecht, and Ashraf Aboulnaga. 2010. Q-Cop: Avoiding bad query mixes to minimize client timeouts under heavy loads. In ICDE, . IEEE Computer Society, 397-408.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457286"},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.14778\/2536206.2536219"},{"key":"e_1_2_2_48_1","first-page":"1081","article-title":"Predicting query execution time: Are optimizer cost models really unusable?. In ICDE","author":"Wu Wentao","year":"2013","unstructured":"Wentao Wu, Yun Chi, Shenghuo Zhu, Jun'ichi Tatemura, Hakan Hacig\u00fcm\u00fcs, and Jeffrey F. Naughton. 2013b. Predicting query execution time: Are optimizer cost models really unusable?. In ICDE, . IEEE Computer Society, 1081-1092.","journal-title":"IEEE Computer Society"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.14778\/2733085.2733092"},{"key":"e_1_2_2_50_1","volume-title":"Stage: Query Execution Time Prediction in Amazon Redshift. In SIGMOD Conference Companion. ACM,, 280-294","author":"Wu Ziniu","year":"2024","unstructured":"Ziniu Wu, Ryan Marcus, Zhengchun Liu, Parimarjan Negi, Vikram Nathan, Pascal Pfeil, Gaurav Saxena, Mohammad Rahman, Balakrishnan Narayanaswamy, and Tim Kraska. 2024. Stage: Query Execution Time Prediction in Amazon Redshift. In SIGMOD Conference Companion. ACM,, 280-294."},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3626769"},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517885"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.14778\/3421424.3421432"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.14778\/3681954.3682026"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.14778\/3529337.3529349"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.14778\/3397230.3397238"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.14778\/3583140.3583160"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3725364","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,3,31]],"date-time":"2026-03-31T18:59:19Z","timestamp":1774983559000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3725364"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,17]]},"references-count":57,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2025,6,17]]}},"alternative-id":["10.1145\/3725364"],"URL":"https:\/\/doi.org\/10.1145\/3725364","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,17]]}}}