Low-latency query compilation

被引:1
|
作者
Funke, Henning [1 ]
Muehlig, Jan [1 ]
Teubner, Jens [1 ]
机构
[1] TU Dortmund Univ, Dortmund, Germany
来源
VLDB JOURNAL | 2022年 / 31卷 / 06期
关键词
Query processing; Query compilation; Just-in-time compilation;
D O I
10.1007/s00778-022-00741-5
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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.5x over state-of-the-art systems.
引用
收藏
页码:1171 / 1184
页数:14
相关论文
共 50 条
  • [1] Low-latency query compilation
    Henning Funke
    Jan Mühlig
    Jens Teubner
    The VLDB Journal, 2022, 31 : 1171 - 1184
  • [2] Low-Latency Compilation of SQL Queries to Machine Code
    Funke, Henning
    Teubner, Jens
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2021, 14 (12): : 2691 - 2694
  • [3] Low-latency XPath Query Evaluation on Multi-Core Processors
    Karsin, Ben
    Casanova, Henri
    Lim, Lipyeow
    PROCEEDINGS OF THE 50TH ANNUAL HAWAII INTERNATIONAL CONFERENCE ON SYSTEM SCIENCES, 2017, : 6222 - 6231
  • [4] A Novel, Low-latency Algorithm for Multiple Group-By Query Optimization
    Duy-Hung Phan
    Michiardi, Pietro
    2016 32ND IEEE INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE), 2016, : 301 - 312
  • [5] Edge Coordinated Query Configuration for Low-Latency and Accurate Video Analytics
    Yang, Peng
    Lyu, Feng
    Wu, Wen
    Zhang, Ning
    Yu, Li
    Shen, Xuemin
    IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2020, 16 (07) : 4855 - 4864
  • [6] Edge Learning for Low-Latency Video Analytics: Query Scheduling and Resource Allocation
    Lin, Jie
    Yang, Peng
    Wu, Wen
    Zhang, Ning
    Han, Tao
    Yu, Li
    2021 IEEE 18TH INTERNATIONAL CONFERENCE ON MOBILE AD HOC AND SMART SYSTEMS (MASS 2021), 2021, : 252 - 259
  • [7] Low-latency trading
    Hasbrouck, Joel
    Saar, Gideon
    JOURNAL OF FINANCIAL MARKETS, 2013, 16 (04) : 646 - 679
  • [8] Research on Construction of Low-Latency S-Boxes and Bidirectional Low-Latency Properties
    Wu, Rui-Chen
    Zhang, Lei
    Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2024, 52 (11): : 3769 - 3779
  • [9] Orthros: A Low-Latency PRF
    Banik, Subhadeep
    Isobe, Takanori
    Liu, Fukang
    Minematsu, Kazuhiko
    Sakamoto, Kosei
    IACR TRANSACTIONS ON SYMMETRIC CRYPTOLOGY, 2021, 2021 (01) : 37 - 77
  • [10] Low-Latency Scheduling in MPTCP
    Hurtig, Per
    Grinnemo, Karl-Johan
    Brunstrom, Anna
    Ferlin, Simone
    Alay, Ozgu
    Kuhn, Nicolas
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2019, 27 (01) : 302 - 315