Snel: LLVM 向けの SQL ネイティブ実行
Snel: SQL Native Execution for LLVM
Snel: SQL Native Execution for LLVM
@misc{mottalli2020snel,
title = {Snel: SQL Native Execution for LLVM},
author = {Marcelo Mottalli and Alejo Sanchez and Gustavo Ajzenman and Carlos Sarraute},
year = {2020},
eprint = {2002.09449},
archivePrefix = {arXiv},
primaryClass = {cs.CY},
url = {https://arxiv.org/abs/2002.09449}
}
Mottalli, M., Sanchez, A., Ajzenman, G., & Sarraute, C. (2020). Snel: SQL Native Execution for LLVM [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.09449
MOTTALLI M, SANCHEZ A, AJZENMAN G, et al. Snel: SQL Native Execution for LLVM[EB/OL]. (2020-02-21)[2026-11-29]. https://arxiv.org/abs/2002.09449.
要旨
Snel は、クエリの Just-In-Time (JIT) 編成と列指向データ表現を特徴とする関係型データベースエンジンである。Snel は LLVM コンパイラインフラストラクチャを活用することで、高速なオンライン分析を可能にしている。また、SQL 言語への拡張としてヒストグラムの解決などのカスタム特殊メソッドも備えている。「Snel」とは「LLVM 向けの SQL ネイティブ実行 (SQL Native Execution for LLVM)」を意味する。従来のデータベースエンジンとは異なり、クライアント - サーバーインターフェースを提供しない。代わりに、SQLite への拡張としてインターフェースを公開し、コマンドラインからの簡易的なインタラクティブ利用や、アプリケーションへの埋め込みを可能にしている。Snel テーブルは読み取り専用であるため、トランザクションや更新機能は提供されていない。これにより、テーブルロックオーバーヘッドや一貫性の確保を必要とせず、クエリが非常に高速に実行される。Snel の核心は、クライアントアプリケーションで使用可能な動的ライブラリである。また、従来の SQL エンビロンメントとのシームレスな統合とコマンドラインからの簡易的なインタラクティブ利用を可能にする SQLite 拡張も備えている。
Snel is a relational database engine featuring Just-In-Time (JIT) compilation of queries and columnar data representation. Snel is designed for fast on-line analytics by leveraging the LLVM compiler infrastructure. It also has custom special methods like resolving histograms as extensions to the SQL language. "Snel" means "SQL Native Execution for LLVM". Unlike traditional database engines, it does not provide a client-server interface. Instead, it exposes its interface as an extension to SQLite, for a simple interactive usage from command line and for embedding in applications. Since Snel tables are read-only, it does not provide features like transactions or updates. This allows queries to be very fast since they don't have the overhead of table locking or ensuring consistency. At its core, Snel is simply a dynamic library that can be used by client applications. It has an SQLite extension for seamless integration with a traditional SQL environment and simple interactive usage from command line.