HackerPapers

arXiv:1610.09166cs.DB

Push vs. Pull-Based Loop Fusion in Query Engines

Amir Shaikhha, Mohammad Dashti, Christoph Koch

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Database query engines use pull-based or push-based approaches to avoid the materialization of data across query operators. In this paper, we study these two types of query engines in depth and present the limitations and advantages of each engine. Similarly, the programming languages community has developed loop fusion techniques to remove intermediate collections in the context of collection programming. We draw parallels between the DB and PL communities by demonstrating the connection between pipelined query engines and loop fusion techniques. Based on this connection, we propose a new type of pull-based engine, inspired by a loop fusion technique, which combines the benefits of both approaches. Then we experimentally evaluate the various engines, in the context of query compilation, for the first time in a fair environment, eliminating the biasing impact of ancillary optimizations that have traditionally only been used with one of the approaches. We show that for realistic analytical workloads, there is no considerable advantage for either form of pipelined query engine, as opposed to what recent research suggests. Also, by using microbenchmarks we show that our proposed engine dominates the existing engines by combining the benefits of both.

arXiv comments
Journal reference
DOI
Subjects
cs.DBDatabases cs.PLProgramming Languages

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from May 2021 to May 2021.

Comments linking this paper, per year.

Discussed in comments1 thread

  1. Query Engines: Push vs. Pull 1 comment
    • Both the linked papers (Neumann[0] and Shaikhha et al[1]) go into this a bit. I personally found figures 3 and 4 in the Neumann paper particularly helpful. [0] https://www.vldb.org/pvldb/vol4/p539-neumann.pdf [1] https://arxiv.org/pdf/1610.09166.pdf

      foldUView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.