Cache-Efficient Aggregation: Hashing Is Sorting
Cache-Efficient Aggregation: Hashing Is Sorting
复制标题
缓存高效聚合:散列即排序
DOI:
10.1145/2723372.2747644
复制
发表时间:
2015
期刊:
影响因子:
--
通讯作者:
Franz Färber
中科院分区:
文献类型:
--
作者:
Ingo Müller;P. Sanders;Arnaud Lacurie;Wolfgang Lehner;Franz Färber
For decades researchers have studied the duality of hashing and sorting for the implementation of the relational operators, especially for efficient aggregation. Depending on the underlying hardware and software architecture, the specifically implemented algorithms, and the data sets used in the experiments, different authors came to different conclusions about which is the better approach. In this paper we argue that in terms of cache efficiency, the two paradigms are actually the same. We support our claim by showing that the complexity of hashing is the same as the complexity of sorting in the external memory model. Furthermore we make the similarity of the two approaches obvious by designing an algorithmic framework that allows to switch seamlessly between hashing and sorting during execution. The fact that we mix hashing and sorting routines in the same algorithmic framework allows us to leverage the advantages of both approaches and makes their similarity obvious. On a more practical note, we also show how to achieve very low constant factors by tuning both the hashing and the sorting routines to modern hardware. Since we observe a complementary dependency of the constant factors of the two routines to the locality of the input, we exploit our framework to switch to the faster routine where appropriate. The result is a novel relational aggregation algorithm that is cache-efficient---independently and without prior knowledge of input skew and output cardinality---, highly parallelizable on modern multi-core systems, and operating at a speed close to the memory bandwidth, thus outperforming the state-of-the-art by up to 3.7x.
DOI:
10.1145/2588555.2610507
发表时间:
2014-06
期刊:
Proceedings of the 2014 ACM SIGMOD International Conference on Management of Data
影响因子:
--
作者:
Viktor Leis;P. Boncz;A. Kemper;Thomas Neumann
通讯作者:
Viktor Leis;P. Boncz;A. Kemper;Thomas Neumann
影响因子:
2.5
作者:
Albutiu, Martina-Cezara;Kemper, Alfons;Neumann, Thomas
通讯作者:
Neumann, Thomas
DOI:
10.14778/2002938.2002940
发表时间:
2011
期刊:
Proc. VLDB Endow.
影响因子:
--
作者:
T. Neumann
通讯作者:
T. Neumann