We found a match
Your institution may have access to this item. Find your institution then sign in to continue.
- Title
Low-latency query compilation.
- Authors
Funke, Henning; Mühlig, Jan; Teubner, Jens
- 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 × over state-of-the-art systems.
- Subjects
COMPILERS (Computer programs); DATABASE design; ASSEMBLY machines; SQL
- Publication
VLDB Journal International Journal on Very Large Data Bases, 2022, Vol 31, Issue 6, p1171
- ISSN
1066-8888
- Publication type
Article
- DOI
10.1007/s00778-022-00741-5