{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,31]],"date-time":"2026-03-31T09:35:08Z","timestamp":1774949708218,"version":"3.50.1"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"10","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2022,6]]},"abstract":"<jats:p>Hybrid Hash Join (HHJ) has proven to be one of the most efficient and widely-used join algorithms. While HHJ's performance depends largely on accurate statistics and information about the input relations, it may not always be practical or possible for a system to have such information available.<\/jats:p>\n          <jats:p>HHJ's design depends on many details to perform well. This paper is an experimental and analytical study of the trade-offs in designing a robust and dynamic HHJ operator. We revisit the design and optimization techniques suggested by previous studies through extensive experiments, comparing them with other algorithms designed by us or used in related studies.<\/jats:p>\n          <jats:p>We explore the impact of the number of partitions on HHJ's performance and propose a new lower bound for the number of partitions. We design and evaluate different partition insertion techniques to maximize memory utilization with the least CPU cost. Additionally, we consider a comprehensive set of algorithms for dynamically selecting a partition to spill and compare the results against previously published studies. We then present and evaluate two alternative growth policies for spilled partitions.<\/jats:p>\n          <jats:p>These algorithms have been implemented in the context of Apache AsterixDB and evaluated under different scenarios such as variable record sizes, different distributions of join attributes, and different storage types, including HDD, SSD, and Amazon Elastic Block Store (Amazon EBS).<\/jats:p>","DOI":"10.14778\/3547305.3547327","type":"journal-article","created":{"date-parts":[[2022,9,7]],"date-time":"2022-09-07T16:09:53Z","timestamp":1662566993000},"page":"2257-2269","source":"Crossref","is-referenced-by-count":7,"title":["Design trade-offs for a robust dynamic hybrid hash join"],"prefix":"10.14778","volume":"15","author":[{"given":"Shiva","family":"Jahangiri","sequence":"first","affiliation":[{"name":"University of California"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Michael J.","family":"Carey","sequence":"additional","affiliation":[{"name":"University of California"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Johann-Christoph","family":"Freytag","sequence":"additional","affiliation":[{"name":"Humboldt-Universit\u00e4t zu Berlin"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2022,9,7]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","unstructured":"1993. TPC Benchmark\u2122 A: Standard Specification . In The Benchmark Handbook for Database and Transaction Systems ( 2 nd Edition), Jim Gray (Ed.). Morgan Kaufmann . 1993. TPC Benchmark\u2122 A: Standard Specification. In The Benchmark Handbook for Database and Transaction Systems (2nd Edition), Jim Gray (Ed.). Morgan Kaufmann.","edition":"2"},{"key":"e_1_2_1_2_1","unstructured":"2021. \"Amazon Elastic Block Store\". https:\/\/aws.amazon.com\/ebs\/  2021. \"Amazon Elastic Block Store\". https:\/\/aws.amazon.com\/ebs\/"},{"key":"e_1_2_1_3_1","unstructured":"2021. \"Apache AsterixDB\". https:\/\/asterixdb.apache.org  2021. \"Apache AsterixDB\". https:\/\/asterixdb.apache.org"},{"key":"e_1_2_1_4_1","unstructured":"2021. \"Apache Spark\". https:\/\/spark.apache.org  2021. \"Apache Spark\". https:\/\/spark.apache.org"},{"key":"e_1_2_1_5_1","unstructured":"2021. \"IO_Direct Java Library\". https:\/\/github.com\/smacke\/jaydio  2021. \"IO_Direct Java Library\". https:\/\/github.com\/smacke\/jaydio"},{"key":"e_1_2_1_6_1","unstructured":"2021. \"Mersenne Twister Fast\". https:\/\/cs.gmu.edu\/~sean\/research\/mersenne\/MersenneTwisterFast.java  2021. \"Mersenne Twister Fast\". https:\/\/cs.gmu.edu\/~sean\/research\/mersenne\/MersenneTwisterFast.java"},{"key":"e_1_2_1_7_1","unstructured":"2021. \"Oracle\". http:\/\/www.oracle.com\/  2021. \"Oracle\". http:\/\/www.oracle.com\/"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.14778\/2733085.2733096"},{"key":"e_1_2_1_9_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","author":"Ballinger Carrie","unstructured":"Carrie Ballinger . 1993. TPC-D: Benchmarking for Decision Support . In The Benchmark Handbook for Database and Transaction Systems ( 2 nd Edition), Jim Gray (Ed.). Morgan Kaufmann . Carrie Ballinger. 1993. TPC-D: Benchmarking for Decision Support. In The Benchmark Handbook for Database and Transaction Systems (2nd Edition), Jim Gray (Ed.). Morgan Kaufmann.","edition":"2"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3452831"},{"key":"e_1_2_1_11_1","volume-title":"Benchmarking Database Systems A Systematic Approach. In 9th International Conference on Very Large Data Bases","author":"Bitton Dina","year":"1983","unstructured":"Dina Bitton , David J. DeWitt , and Carolyn Turbyfill . 1983 . Benchmarking Database Systems A Systematic Approach. In 9th International Conference on Very Large Data Bases , October 31 - November 2, 1983, Florence, Italy, Proceedings, Mario Schkolnick and Costantino Thanos (Eds.). Morgan Kaufmann, 8--19. Dina Bitton, David J. DeWitt, and Carolyn Turbyfill. 1983. Benchmarking Database Systems A Systematic Approach. In 9th International Conference on Very Large Data Bases, October 31 - November 2, 1983, Florence, Italy, Proceedings, Mario Schkolnick and Costantino Thanos (Eds.). Morgan Kaufmann, 8--19."},{"key":"e_1_2_1_12_1","volume-title":"TPCTC 2017","author":"Boncz Peter A.","year":"2017","unstructured":"Peter A. Boncz , Angelos-Christos G. Anadiotis , and Steffen Kl\u00e4be . 2017 . JCC-H: Adding Join Crossing Correlations with Skew to TPC-H. In Performance Evaluation and Benchmarking for the Analytics Era - 9th TPC Technology Conference , TPCTC 2017 , Munich, Germany , August 28, 2017, Revised Selected Papers (Lecture Notes in Computer Science), Raghunath Nambiar and Meikel Poess (Eds.), Vol. 10661. Springer, 103--119. Peter A. Boncz, Angelos-Christos G. Anadiotis, and Steffen Kl\u00e4be. 2017. JCC-H: Adding Join Crossing Correlations with Skew to TPC-H. In Performance Evaluation and Benchmarking for the Analytics Era - 9th TPC Technology Conference, TPCTC 2017, Munich, Germany, August 28, 2017, Revised Selected Papers (Lecture Notes in Computer Science), Raghunath Nambiar and Meikel Poess (Eds.), Vol. 10661. Springer, 103--119."},{"key":"e_1_2_1_13_1","volume-title":"Topics in Performance Evaluation","author":"Crolotte Alain","year":"2011","unstructured":"Alain Crolotte and Ahmad Ghazal . 2011. Introducing Skew into the TPC-H Benchmark . In Topics in Performance Evaluation , Measurement and Characterization - Third TPC Technology Conference, TPCTC 2011 , Seattle, WA, USA, August 29-September 3, 2011, Revised Selected Papers (Lecture Notes in Computer Science), Raghunath Othayoth Nambiar and Meikel Poess (Eds.), Vol. 7144 . Springer , 137--145. Alain Crolotte and Ahmad Ghazal. 2011. Introducing Skew into the TPC-H Benchmark. In Topics in Performance Evaluation, Measurement and Characterization - Third TPC Technology Conference, TPCTC 2011, Seattle, WA, USA, August 29-September 3, 2011, Revised Selected Papers (Lecture Notes in Computer Science), Raghunath Othayoth Nambiar and Meikel Poess (Eds.), Vol. 7144. Springer, 137--145."},{"key":"e_1_2_1_14_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","author":"DeWitt David J.","unstructured":"David J. DeWitt . 1991. The Wisconsin Benchmark: Past, Present, and Future . In The Benchmark Handbook for Database and Transaction Systems ( 1 st Edition), Jim Gray (Ed.). Morgan Kaufmann , 119--165. David J. DeWitt. 1991. The Wisconsin Benchmark: Past, Present, and Future. In The Benchmark Handbook for Database and Transaction Systems (1st Edition), Jim Gray (Ed.). Morgan Kaufmann, 119--165.","edition":"1"},{"key":"e_1_2_1_15_1","volume-title":"Proceedings of the 1984 ACM SIGMOD International Conference on Management of Data","author":"DeWitt David J","unstructured":"David J DeWitt , 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 the 1984 ACM SIGMOD International Conference on Management of Data ( Boston, Massachusetts) (SIGMOD '84). Association for Computing Machinery, New York, NY, USA, 1--8. David J DeWitt, 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 the 1984 ACM SIGMOD International Conference on Management of Data (Boston, Massachusetts) (SIGMOD '84). Association for Computing Machinery, New York, NY, USA, 1--8."},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-43948-7_36"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2463676.2463712"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/152610.152611"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.5555\/645924.671160"},{"key":"e_1_2_1_20_1","unstructured":"Jim Gray (Ed.). 1993. The Benchmark Handbook for Database and Transaction Systems (2nd Edition).  Jim Gray (Ed.). 1993. The Benchmark Handbook for Database and Transaction Systems (2nd Edition)."},{"key":"e_1_2_1_21_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","author":"Gray Jim","unstructured":"Jim Gray . 1993. Database and Transaction Processing Performance Handbook . In The Benchmark Handbook for Database and Transaction Systems ( 2 nd Edition). Jim Gray. 1993. Database and Transaction Processing Performance Handbook. In The Benchmark Handbook for Database and Transaction Systems (2nd Edition).","edition":"2"},{"key":"e_1_2_1_22_1","first-page":"3","article-title":"A \"Measure of Transaction Processing","volume":"28","author":"Gray Jim","year":"2005","unstructured":"Jim Gray . 2005 . A \"Measure of Transaction Processing \" 20 Years Later. IEEE Data Eng. Bull. 28 , 2 (2005), 3 -- 4 . Jim Gray. 2005. A \"Measure of Transaction Processing\" 20 Years Later. IEEE Data Eng. Bull. 28, 2 (2005), 3--4.","journal-title":"20 Years Later. IEEE Data Eng. Bull."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780050043"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSC.2017.2730882"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389741"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3384406"},{"key":"e_1_2_1_27_1","volume-title":"Wisconsin Benchmark Data Generator: To JSON and Beyond. In SIGMOD '21: International Conference on Management of Data","author":"Jahangiri Shiva","year":"2021","unstructured":"Shiva Jahangiri . 2021 . Wisconsin Benchmark Data Generator: To JSON and Beyond. In SIGMOD '21: International Conference on Management of Data , Virtual Event, China , June 20-25, 2021, Guoliang Li, Zhanhuai Li, Stratos Idreos, and Divesh Srivastava (Eds.). ACM, 2887--2889. Shiva Jahangiri. 2021. Wisconsin Benchmark Data Generator: To JSON and Beyond. In SIGMOD '21: International Conference on Management of Data, Virtual Event, China, June 20-25, 2021, Guoliang Li, Zhanhuai Li, Stratos Idreos, and Divesh Srivastava (Eds.). ACM, 2887--2889."},{"key":"e_1_2_1_28_1","volume-title":"Design Trade-offs for a Robust Dynamic Hybrid Hash Join (Extended Version). CoRR abs\/2112.02480","author":"Jahangiri Shiva","year":"2021","unstructured":"Shiva Jahangiri , Michael J. Carey , and Johann-Christoph Freytag . 2021. Design Trade-offs for a Robust Dynamic Hybrid Hash Join (Extended Version). CoRR abs\/2112.02480 ( 2021 ). arXiv:2112.02480 https:\/\/arxiv.org\/abs\/2112.02480 Shiva Jahangiri, Michael J. Carey, and Johann-Christoph Freytag. 2021. Design Trade-offs for a Robust Dynamic Hybrid Hash Join (Extended Version). CoRR abs\/2112.02480 (2021). arXiv:2112.02480 https:\/\/arxiv.org\/abs\/2112.02480"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1002\/spe.2799"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3320218"},{"key":"e_1_2_1_31_1","volume-title":"Proceedings of the Fifteenth International Conference on Very Large Data Bases","author":"Kitsuregawa Masaru","year":"1989","unstructured":"Masaru Kitsuregawa , Masaya Nakayama , and Mikio Takagi . 1989 . The Effect of Bucket Size Tuning in the Dynamic Hybrid GRACE Hash Join Method . In Proceedings of the Fifteenth International Conference on Very Large Data Bases , August 22-25, 1989, Amsterdam, The Netherlands, Peter M. G. Apers and Gio Wiederhold (Eds.). Morgan Kaufmann, 257--266. Masaru Kitsuregawa, Masaya Nakayama, and Mikio Takagi. 1989. The Effect of Bucket Size Tuning in the Dynamic Hybrid GRACE Hash Join Method. In Proceedings of the Fifteenth International Conference on Very Large Data Bases, August 22-25, 1989, Amsterdam, The Netherlands, Peter M. G. Apers and Gio Wiederhold (Eds.). Morgan Kaufmann, 257--266."},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0020-0190(80)90077-0"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/69.317705"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/233269.233355"},{"key":"e_1_2_1_35_1","volume-title":"Hash-Partitioned Join Method Using Dynamic Destaging Strategy. In Fourteenth International Conference on Very Large Data Bases","author":"Nakayama Masaya","year":"1988","unstructured":"Masaya Nakayama , Masaru Kitsuregawa , and Mikio Takagi . 1988 . Hash-Partitioned Join Method Using Dynamic Destaging Strategy. In Fourteenth International Conference on Very Large Data Bases , August 29 - September 1, 1988, Los Angeles, California, USA, Proceedings, Fran\u00e7ois Bancilhon and David J. DeWitt (Eds.). Morgan Kaufmann, 468--478. Masaya Nakayama, Masaru Kitsuregawa, and Mikio Takagi. 1988. Hash-Partitioned Join Method Using Dynamic Destaging Strategy. In Fourteenth International Conference on Very Large Data Bases, August 29 - September 1, 1988, Los Angeles, California, USA, Proceedings, Fran\u00e7ois Bancilhon and David J. DeWitt (Eds.). Morgan Kaufmann, 468--478."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/170035.170051"},{"key":"e_1_2_1_37_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","author":"Raab Francois","unstructured":"Francois Raab . 1993. TPC-C - The Standard Benchmark for Online transaction Processing (OLTP) . In The Benchmark Handbook for Database and Transaction Systems ( 2 nd Edition), Jim Gray (Ed.). Morgan Kaufmann . Francois Raab. 1993. TPC-C - The Standard Benchmark for Online transaction Processing (OLTP). In The Benchmark Handbook for Database and Transaction Systems (2nd Edition), Jim Gray (Ed.). Morgan Kaufmann.","edition":"2"},{"key":"e_1_2_1_38_1","volume-title":"Proceedings of the 1989 ACM SIGMOD International Conference on Management of Data","author":"Donovan","year":"1989","unstructured":"Donovan A. Schneider and David J. DeWitt. 1989. A Performance Evaluation of Four Parallel Join Algorithms in a Shared-Nothing Multiprocessor Environment . In Proceedings of the 1989 ACM SIGMOD International Conference on Management of Data , Portland, Oregon, USA, May 31 - June 2, 1989 , James Clifford, Bruce G. Lindsay, and David Maier (Eds.). ACM Press, 110--121. Donovan A. Schneider and David J. DeWitt. 1989. A Performance Evaluation of Four Parallel Join Algorithms in a Shared-Nothing Multiprocessor Environment. In Proceedings of the 1989 ACM SIGMOD International Conference on Management of Data, Portland, Oregon, USA, May 31 - June 2, 1989, James Clifford, Bruce G. Lindsay, and David Maier (Eds.). ACM Press, 110--121."},{"key":"e_1_2_1_39_1","volume-title":"The Benchmark Handbook for Database and Transaction Systems","author":"Serlin Omri","unstructured":"Omri Serlin . 1993. The History of DebitCredit and the TPC . In The Benchmark Handbook for Database and Transaction Systems ( 2 nd Edition), Jim Gray (Ed .). Omri Serlin. 1993. The History of DebitCredit and the TPC. In The Benchmark Handbook for Database and Transaction Systems (2nd Edition), Jim Gray (Ed.).","edition":"2"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/6314.6315"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1016\/0165-6074(93)90254-I"}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3547305.3547327","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,12,28]],"date-time":"2022-12-28T11:18:30Z","timestamp":1672226310000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3547305.3547327"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,6]]},"references-count":41,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2022,6]]}},"alternative-id":["10.14778\/3547305.3547327"],"URL":"https:\/\/doi.org\/10.14778\/3547305.3547327","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2022,6]]}}}