Low-latency query compilation
Open Access
- 10 May 2022
- journal article
- research article
- Published by Springer Nature in The VLDB Journal
- Vol. 31 (6) , 1171-1184
Abstract
Query compilation is a processing technique that achieves very high processing speeds but has the disadvantage of introducing additional compilation latencies. These latencies cause an overhead that is relatively high for short-running and high-complexity queries. In this work, we present Flounder IR and ReSQL, our new approach to query compilation. Instead of using a general purpose intermediate representation (e.g., LLVM IR) during compilation, ReSQL uses Flounder IR, which is specifically designed for database processing. Flounder IR is lightweight and close to machine assembly. This simplifies the translation from IR to machine code, which otherwise is a costly translation step. Despite simple translation, compiled queries still benefit from the high processing speeds of the query compilation technique. We analyze the performance of our approach with micro-benchmarks and with ReSQL, which employs a full translation stack from SQL to machine code. We show reductions in compilation times up to two orders of magnitude over LLVM and show improvements in overall execution time for TPC-H queries up to 5.5 $$\times $$ over state-of-the-art systems.
Keywords
Funding Information
- Technische Universität Dortmund
This publication has 22 references indexed in Scilit:
- Asynchronous memory access chainingProceedings of the VLDB Endowment, 2015
- Multi-core, main-memory joinsProceedings of the VLDB Endowment, 2013
- The Architecture of SciDB2011
- SIMD-scanProceedings of the VLDB Endowment, 2009
- The Intel IA-64 compiler code generatorIEEE Micro, 2000
- MIL primitives for querying a fragmented worldThe VLDB Journal, 1999
- Linear scan register allocationACM Transactions on Programming Languages and Systems, 1999
- Compiler-based prefetching for recursive data structures1996
- Fast, effective dynamic compilationACM SIGPLAN Notices, 1996
- Register allocation via coloringComputer Languages, 1981