Vectorization vs. compilation in query execution
Juliusz Sompolski, Marcin Żukowski, Peter A. Boncz · International Workshop on Data Management on New Hardware (DaMoN) · 2011
Compiling database queries into executable (sub-) programs provides substantial benefits comparing to traditional interpreted execution. Many of these benefits, such as reduced interpretation overhead, better instruction code locality, and providing opportunities to use SIMD instructions, have previously been provided by redesigning query processors to use a vectorized execution model. In this paper, we try to shed light on the question of how state-of-the-art compilation strategies relate to vectorized execution for analytical database workloads on modern CPUs. For this purpose, we carefully investigate the behavior of vectorized and compiled strategies inside the Ingres VectorWise database system in three use cases: Project, Select and Hash Join. One of the findings is that compilation should always be combined with block-wise query execution. Another contribution is identifying three cases where "loop-compilation" strategies are inferior to vectorized execution. As such, a careful merging of these two strategies is proposed for optimal performance: either by incorporating vectorized execution principles into compiled query plans or using query compilation to create building blocks for vectorized processing.
Cited by 83 works. doi:10.1145/1995441.1995446 Open-access PDF
Authors
References
- MonetDB/X100: Hyper-Pipelining Query Execution
- A history and evaluation of System R
- Volcano-an extensible and parallel query evaluation system
- Monet; a next-Generation DBMS Kernel For Query-Intensive Applications
- Block oriented processing of relational database operations in modern computer architectures
- Conjunctive selection conditions in main memory
- Compiled Query Execution Engine using JVM
- Generating code for holistic query evaluation
- Improving hash join performance through prefetching
- DSM vs. NSM