{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,17]],"date-time":"2026-11-17T22:52:41Z","timestamp":1794955961586,"version":"4.9.1"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2023,5,26]],"date-time":"2023-05-26T00:00:00Z","timestamp":1685059200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,5,26]]},"abstract":"<jats:p>Join order optimization is one of the most fundamental problems in processing queries on relational data. It has been studied extensively for almost four decades now. Still, because of its NP hardness, no generally efficient solution exists and the problem remains an important topic of research. The scope of algorithms to compute join orders ranges from exhaustive enumeration, to combinatorics based on graph properties, to greedy search, to genetic algorithms, to recently investigated machine learning. A few works exist that use heuristic search to compute join orders. However, a theoretical argument why and how heuristic search is applicable to join order optimization is lacking.<\/jats:p>\n                  <jats:p>In this work, we investigate join order optimization via heuristic search. In particular, we provide a strong theoretical framework, in which we reduce join order optimization to the shortest path problem. We then thoroughly analyze the properties of this problem and the applicability of heuristic search. We devise crucial optimizations to make heuristic search tractable. We implement join ordering via heuristic search in a real DBMS and conduct an extensive empirical study. Our findings show that for star- and clique-shaped queries, heuristic search finds optimal plans an order of magnitude faster than current state of the art. Our suboptimal solutions further extend the cost\/time Pareto frontier.<\/jats:p>","DOI":"10.1145\/3588927","type":"journal-article","created":{"date-parts":[[2023,5,30]],"date-time":"2023-05-30T13:42:05Z","timestamp":1685454125000},"page":"1-26","source":"Crossref","is-referenced-by-count":12,"title":["Efficiently Computing Join Orders with Heuristic Search"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0009-0003-8796-1129","authenticated-orcid":false,"given":"Immanuel","family":"Haffner","sequence":"first","affiliation":[{"name":"Saarland University, Saarland Informatics Campus, Saarbr\u00fccken, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1015-804X","authenticated-orcid":false,"given":"Jens","family":"Dittrich","sequence":"additional","affiliation":[{"name":"Saarland University, Saarland Informatics Campus, Saarbr\u00fccken, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,5,30]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/1066157.1066172"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.1995.380392"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-58907-4_6"},{"key":"e_1_2_2_4_1","volume-title":"Introduction to Algorithms","author":"Cormen Thomas H.","unstructured":"Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. 2016. Introduction to Algorithms. The MIT Press."},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3828.3830"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1247480.1247567"},{"key":"e_1_2_2_7_1","doi-asserted-by":"crossref","unstructured":"Edsger W Dijkstra et al. 1959. A note on two problems in connexion with graphs. Numerische mathematik Vol. 1 1 (1959) 269--271.","DOI":"10.1007\/BF01386390"},{"key":"e_1_2_2_8_1","volume-title":"Heuristic search: theory and applications","author":"Edelkamp Stefan","unstructured":"Stefan Edelkamp and Stefan Schrodl. 2011. Heuristic search: theory and applications. Elsevier."},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0054528"},{"key":"e_1_2_2_10_1","unstructured":"Pit Fender. 2014. Algorithms for Efficient Top-Down Join Enumeration. (2014)."},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2011.5767901"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1109\/TKDE.2011.235"},{"key":"e_1_2_2_13_1","first-page":"632","article-title":"Pulse code communication","volume":"2","author":"Gray Frank","year":"1953","unstructured":"Frank Gray. 1953. Pulse code communication. US Patent 2,632,058.","journal-title":"US Patent"},{"key":"e_1_2_2_14_1","unstructured":"Immanuel Haffner Marcel Maltry Joris Nix Jens Dittrich and Luca Gretscher. 2023. normalfont \u03bctable. https:\/\/mutable.uni-saarland.de"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSSC.1968.300136"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1270.1498"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/276304.276315"},{"key":"e_1_2_2_18_1","first-page":"128","article-title":"Optimization of Nonrecursive Queries","volume":"86","author":"Krishnamurthy Ravi","year":"1986","unstructured":"Ravi Krishnamurthy, Haran Boral, and Carlo Zaniolo. 1986. Optimization of Nonrecursive Queries.. In VLDB, Vol. 86. 128--137.","journal-title":"VLDB"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3452838"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342644"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.5555\/1182635.1164207"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457568"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1559845.1559889"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3183733"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1109\/SSDM.1999.787642"},{"key":"e_1_2_2_27_1","first-page":"314","article-title":"Measuring the Complexity of Join Enumeration in Query Optimization","volume":"97","author":"Ono Kiyoshi","year":"1990","unstructured":"Kiyoshi Ono and Guy M. Lohman. 1990. Measuring the Complexity of Join Enumeration in Query Optimization.. In VLDB, Vol. 97. 314--325.","journal-title":"VLDB"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2019.00191"},{"key":"e_1_2_2_29_1","volume-title":"Artificial Intelligence: A Modern Approach 4 ed.)","author":"Russell Stuart","year":"2020","unstructured":"Stuart Russell and Peter Norvig. 2020. Artificial Intelligence: A Modern Approach 4 ed.). Prentice Hall."},{"key":"e_1_2_2_30_1","volume-title":"Heuristic search: The emerging science of problem solving","unstructured":"Sa\"id Salhi. 2017. Heuristic search: The emerging science of problem solving. Springer."},{"key":"e_1_2_2_31_1","first-page":"1018","article-title":"Combinatorial optimization: Polyhedra and efficiency (algorithms and combinatorics)","volume":"55","author":"Schrijver Alexander","year":"2004","unstructured":"Alexander Schrijver. 2004. Combinatorial optimization: Polyhedra and efficiency (algorithms and combinatorics). Journal-Operational Research Society, Vol. 55, 9 (2004), 1018--1018.","journal-title":"Journal-Operational Research Society"},{"key":"e_1_2_2_32_1","volume-title":"Price","author":"Selinger P. Griffiths","year":"1989","unstructured":"P. Griffiths Selinger, Morton M. Astrahan, Donald D. Chamberlin, Raymond A. Lorie, and Thomas G. Price. 1989. Access Path Selection in a Relational Database Management System. In Readings in Artificial Intelligence and Databases. Elsevier, 511--522."},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/42201.42203"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780050040"},{"key":"e_1_2_2_35_1","volume-title":"Join-order optimization with Cartesian products","author":"Vance Bennet","unstructured":"Bennet Vance. 1998. Join-order optimization with Cartesian products. Oregon Graduate Institute of Science and Technology."},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/235968.233317"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45033-5_5"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2882914"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3588927","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3588927","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T12:47:37Z","timestamp":1750164457000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3588927"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,5,26]]},"references-count":38,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2023,5,26]]}},"alternative-id":["10.1145\/3588927"],"URL":"https:\/\/doi.org\/10.1145\/3588927","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,5,26]]}}}