{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,15]],"date-time":"2026-09-15T01:04:54Z","timestamp":1789434294211,"version":"build-2803163510"},"reference-count":45,"publisher":"Association for Computing Machinery (ACM)","issue":"8","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2025,4]]},"abstract":"<jats:p>Modern analytical database systems offer high-performance inmemory joins. However, if the build side of a join does not fit in RAM, performance degrades sharply due to switching to traditional external join algorithms such as sort-merge. In streaming query execution, this problem is worsened if multiple joins are evaluated simultaneously, as the database system must decide how to allocate memory to each join, which can greatly affect performance.<\/jats:p>\n          <jats:p>We revisit larger-than-memory join processing on modern hardware, aiming for robust performance that avoids a \"performance cliff\" when memory runs out, even in query plans with many joins.<\/jats:p>\n          <jats:p>To achieve this, we propose three techniques. First, an adaptive, external hash join algorithm that stores temporary data in a unified buffer pool that oversees temporary and persistent data. Second, an optimizer that creates expressions to compress columns at runtime, reducing the size of materialized temporary data. Third, a strategy for dynamically managing the memory of concurrent operators during query execution to reduce spilling.<\/jats:p>\n          <jats:p>We integrate these techniques into DuckDB and experimentally show that when processing memory-intensive join query plans, our implementation gracefully degrades performance as the space requirement exceeds the memory limit. This greatly increases the size of datasets that can be processed on economical hardware.<\/jats:p>","DOI":"10.14778\/3742728.3742762","type":"journal-article","created":{"date-parts":[[2025,9,3]],"date-time":"2025-09-03T13:32:53Z","timestamp":1756906373000},"page":"2748-2760","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Saving Private Hash Join"],"prefix":"10.14778","volume":"18","author":[{"given":"Laurens","family":"Kuiper","sequence":"first","affiliation":[{"name":"CWI, Amsterdam"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Paul","family":"Gro\u00df","sequence":"additional","affiliation":[{"name":"CWI, Amsterdam"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Peter","family":"Boncz","sequence":"additional","affiliation":[{"name":"CWI, Amsterdam"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hannes","family":"M\u00fchleisen","sequence":"additional","affiliation":[{"name":"CWI, Amsterdam"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,9,3]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Proceedings of CIKM 17","author":"Aguilar-Saborit Josep","year":"2008","unstructured":"Josep Aguilar-Saborit, Mohammad Jalali, Dave Sharpe, and Victor Munt\u00e9s Mulero. 2008. Exploiting Pipeline Interruptions for Efficient Memory Allocation. In Proceedings of CIKM 17 (Napa Valley, California, USA) (CIKM '08). ACM, New York, NY, USA, 639\u2013648. 10.1145\/1458082.1458169"},{"key":"e_1_2_1_2_1","volume-title":"Proceedings of SIGMOD 2021","author":"Bandle Maximilian","year":"2021","unstructured":"Maximilian Bandle, Jana Giceva, and Thomas Neumann. 2021. To Partition, or Not to Partition, That is the Join Question in a Real System. In Proceedings of SIGMOD 2021 (Virtual Event, China) (SIGMOD '21). ACM, New York, NY, USA, 168\u2013180. 10.1145\/3448016.3452831"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1147\/sj.164.0363"},{"key":"e_1_2_1_4_1","volume-title":"Proceedings of TPCTC 5","volume":"8391","author":"Boncz Peter","year":"2013","unstructured":"Peter Boncz, Thomas Neumann, and Orri Erling. 2013. TPC-H Analyzed: Hidden Messages and Lessons Learned from an Influential Benchmark. In Proceedings of TPCTC 5, Vol. 8391. Springer-Verlag, Berlin, Heidelberg, 61\u201376. 10.1007\/978-3-319-04936-6_5"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407851"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.5555\/645925.671364"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of CIDR 2005","author":"Boncz Peter A.","year":"2005","unstructured":"Peter A. Boncz, Marcin Zukowski, and Niels Nes. 2005. MonetDB\/X100: Hyper-Pipelining Query Execution. In Proceedings of CIDR 2005. www.cidrdb.org, Asilomar, CA, USA, 225\u2013237. http:\/\/cidrdb.org\/cidr2005\/papers\/P19.pdf"},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of VLDB 28","author":"Dageville Beno\u00eet","year":"2002","unstructured":"Beno\u00eet Dageville and Mohamed Zait. 2002. SQL Memory Management in Oracle9i. In Proceedings of VLDB 28 (Hong Kong, China) (VLDB '02). VLDB Endowment, Los Angeles, California, United States, 962\u2013973. 10.14778\/3007263.3007280"},{"key":"e_1_2_1_9_1","volume-title":"Davison and Goetz Graefe","author":"Diane","year":"1994","unstructured":"Diane L. Davison and Goetz Graefe. 1994. Memory-Contention Responsive Hash Joins. In Proceedings of VLDB 20 (VLDB '94). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 379\u2013390."},{"key":"e_1_2_1_10_1","unstructured":"Cedar DB. 2024. About. Cedar DB. Retrieved 2024-06-28 from https:\/\/cedardb.com\/about\/"},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of SIGMOD 1984","author":"De Witt David J","unstructured":"David J De Witt, Randy H Katz, Frank Olken, Leonard D Shapiro, Michael R Stonebraker, and David A. Wood. 1984. Implementation Techniques for Main Memory Database Systems. In Proceedings of SIGMOD 1984 (Boston, Massachusetts) (SIGMOD'84). ACM, New York, NY, USA, 1\u20138. 10.1145\/602259.602261"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3568027"},{"key":"e_1_2_1_13_1","volume-title":"Proceedings of BSD Can","author":"Evans Jason","year":"2006","unstructured":"Jason Evans. 2006. A scalable concurrent malloc (3) implementation for FreeBSD. In Proceedings of BSD Can (Ottawa, Canada). University of Ottawa, Ottawa, Canada, 14."},{"key":"e_1_2_1_14_1","volume-title":"Proceedings of CIDR 19","author":"Flachs Daniel","year":"2022","unstructured":"Daniel Flachs, Magnus M\u00fcller, and Guido Moerkotte. 2022. The 3D hash join: Building on non-unique join attributes. In Proceedings of CIDR 19. CIDR, Chaminade, 1\u20139. https:\/\/madoc.bib.uni-mannheim.de\/62365\/"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/69.180602"},{"key":"e_1_2_1_16_1","volume-title":"Proceedings of SIGMOD 1990","author":"Graefe Goetz","year":"1990","unstructured":"Goetz Graefe. 1990. Encapsulation of Parallelism in the Volcano Query Processing System. In Proceedings of SIGMOD 1990 (Atlantic City, New Jersey, USA) (SIGMOD '90). ACM, New York, NY, USA, 102\u2013111. 10.1145\/93597.98720"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1109\/69.273032"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00450-011-0186-9"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/3471485.3471500"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.14778\/3547305.3547327"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF03037022"},{"key":"e_1_2_1_22_1","unstructured":"Donald E. Knuth. 1998. The Art of Computer Programming Volume 3: (2nd Ed.) Sorting and Searching. Addison Wesley Longman Publishing Co. Inc. USA."},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of ICDE 40","author":"Kuiper Laurens","year":"2024","unstructured":"Laurens Kuiper, Peter Boncz, and Hannes M\u00fchleisen. 2024. Robust External Hash Aggregation in the Solid State Age. In Proceedings of ICDE 40. IEEE, New York, NY, USA, 3753\u20133766. 10.1109\/ICDE60146.2024.00288"},{"key":"e_1_2_1_24_1","volume-title":"Proceedings of ICDE 39","author":"Kuiper Laurens","year":"2023","unstructured":"Laurens Kuiper and Hannes M\u00fchleisen. 2023. These Rows Are Made for Sorting and That's Just What We'll Do. In Proceedings of ICDE 39 (Anaheim, California). IEEE, New York, NY, USA, 2050\u20132062. 10.1109\/ICDE55515.2023.00159"},{"key":"e_1_2_1_25_1","volume-title":"Memory Data Management and Analysis","author":"Lang Harald","unstructured":"Harald Lang, Viktor Leis, Martina-Cezara Albutiu, Thomas Neumann, and Alfons Kemper. 2015. Massively Parallel NUMA-Aware Hash Joins. In In Memory Data Management and Analysis. Springer International Publishing, Cham, 3\u201314."},{"key":"e_1_2_1_26_1","volume-title":"Proceedings of SiMoD 2023","author":"Lasch Robert","year":"2023","unstructured":"Robert Lasch, Thomas Legler, Norman May, Bernhard Scheirle, and Kai-Uwe Sattler. 2023. Cooperative Memory Management for Table and Temporary Data. In Proceedings of SiMoD 2023 (Bellevue, WA, USA) (SiMoD '23). ACM, New York, NY, USA, Article 2, 5 pages. 10.1145\/3596225.3596230"},{"key":"e_1_2_1_27_1","volume-title":"Proceedings of SIGMOD 2014","author":"Leis Viktor","year":"2014","unstructured":"Viktor Leis, Peter Boncz, Alfons Kemper, and Thomas Neumann. 2014. Morsel-driven parallelism: a NUMA-aware query evaluation framework for the many-core age. In Proceedings of SIGMOD 2014 (Snowbird, Utah, USA) (SIGMOD '14). ACM, New York, NY, USA, 743\u2013754. 10.1145\/2588555.2610507"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_1_29_1","volume-title":"Proceedings of DaMoN 14","author":"Lomet David","year":"2018","unstructured":"David Lomet. 2018. Cost\/Performance in Modern Data Stores: How Data Caching Systems Succeed. In Proceedings of DaMoN 14 (Houston, Texas) (DaMoN '18). ACM, New York, NY, USA, Article 9, 10 pages. 10.1145\/3211922.3211927"},{"key":"e_1_2_1_30_1","volume-title":"Proceedings of VLDB 24 (VLDB '98)","author":"Moerkotte Guido","year":"1998","unstructured":"Guido Moerkotte. 1998. Small Materialized Aggregates: A Light Weight Index Structure for Data Warehousing. In Proceedings of VLDB 24 (VLDB '98). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 476\u2013487."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1016\/0166-5316(94)90019-1"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/288627.288647"},{"key":"e_1_2_1_33_1","volume-title":"Proceedings of VLDB 14 (VLDB '88)","author":"Nakayama Masaya","year":"1988","unstructured":"Masaya Nakayama, Masaru Kitsuregawa, and Mikio Takagi. 1988. Hash-Partitioned Join Method Using Dynamic Destaging Strategy. In Proceedings of VLDB 14 (VLDB '88). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 468\u2013478."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.14778\/2002938.2002940"},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of CIDR 10","author":"Neumann Thomas","year":"2020","unstructured":"Thomas Neumann and Michael J. Freitag. 2020. Umbra: A Disk-Based System with In-Memory Performance. In Proceedings of CIDR 10. www.cidrdb.org, Amsterdam, Netherlands. http:\/\/cidrdb.org\/cidr2020\/papers\/p29-neumann-cidr20.pdf"},{"key":"e_1_2_1_36_1","volume-title":"Datenbanksysteme f\u00fcr Business, Technologie und Web (LNI)","author":"Neumann Thomas","unstructured":"Thomas Neumann and Alfons Kemper. 2015. Unnesting Arbitrary Queries. In Datenbanksysteme f\u00fcr Business, Technologie und Web (LNI), Vol. P-241. GI, Hamburg, Germany, 383\u2013402. https:\/\/dl.gi.de\/handle\/20.500.12116\/2418"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.14778\/3115404.3115408"},{"key":"e_1_2_1_38_1","volume-title":"Proceedings of SIGMOD 2019","author":"Raasveldt Mark","year":"2019","unstructured":"Mark Raasveldt and Hannes M\u00fchleisen. 2019. DuckDB: An Embeddable Analytical Database. In Proceedings of SIGMOD 2019 (Amsterdam, Netherlands) (SIGMOD '19). ACM, New York, NY, USA, 1981\u20131984. 10.1145\/3299869.3320212"},{"key":"e_1_2_1_39_1","unstructured":"Amazon Web Services. 2021. Amazon Elastic Block Store. Amazon. Retrieved 2024-01-22 from https:\/\/aws.amazon.com\/ebs\/"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/6314.6315"},{"key":"e_1_2_1_41_1","volume-title":"Proceedings of SIGMOD 1986 (Washington, D.C., USA) (SIGMOD '86)","author":"Stonebraker Michael","unstructured":"Michael Stonebraker and Lawrence A. Rowe. 1986. The design of POSTGRES. In Proceedings of SIGMOD 1986 (Washington, D.C., USA) (SIGMOD '86). ACM, New York, NY, USA, 340\u2013355. 10.1145\/16894.16888"},{"key":"e_1_2_1_42_1","volume-title":"Proceedings of VLDB 32","author":"Storm Adam J.","unstructured":"Adam J. Storm, Christian Garcia-Arellano, Sam S. Lightstone, Yixin Diao, and M. Surendra. 2006. Adaptive self-tuning memory in DB2. In Proceedings of VLDB 32 (Seoul, Korea) (VLDB '06). VLDB Endowment, Los Angeles, California, United States, 1081\u20131092."},{"key":"e_1_2_1_43_1","volume-title":"Proceedings of ICDE 2013 (ICDE '13)","author":"Teubner Jens","year":"2013","unstructured":"Jens Teubner, Gustavo Alonso, Cagri Balkesen, and M. Tamer Ozsu. 2013. Main-Memory Hash Joins on Multi-Core CPUs: Tuning to the Underlying Hardware. In Proceedings of ICDE 2013 (ICDE '13). IEEE Computer Society, USA, 362\u2013373. 10.1109\/ICDE.2013.6544839"},{"key":"e_1_2_1_44_1","volume-title":"Proceedings of DBTest 2018","author":"Vogelsgesang Adrian","year":"2018","unstructured":"Adrian Vogelsgesang, Michael Haubenschild, Jan Finis, Alfons Kemper, Viktor Leis, Tobias Muehlbauer, Thomas Neumann, and Manuel Then. 2018. Get Real: How Benchmarks Fail to Represent the Real World. In Proceedings of DBTest 2018 (Houston, TX, USA) (DBTest'18). ACM, New York, NY, USA, Article 1, 6 pages. 10.1145\/3209950.3209952"},{"key":"e_1_2_1_45_1","volume-title":"Proceedings of DaMoN 4","author":"Zukowski Marcin","year":"2008","unstructured":"Marcin Zukowski, Niels Nes, and Peter Boncz. 2008. DSM vs. NSM: CPU Performance Tradeoffs in Block-Oriented Query Processing. In Proceedings of DaMoN 4 (Vancouver, Canada) (DaMoN '08). ACM, New York, NY, USA, 47\u201354. 10.1145\/1457150.1457160"}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3742728.3742762","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,3]],"date-time":"2025-09-03T13:34:07Z","timestamp":1756906447000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3742728.3742762"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,4]]},"references-count":45,"journal-issue":{"issue":"8","published-print":{"date-parts":[[2025,4]]}},"alternative-id":["10.14778\/3742728.3742762"],"URL":"https:\/\/doi.org\/10.14778\/3742728.3742762","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2025,4]]},"assertion":[{"value":"2025-09-03","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}