Database Kernel (3): Execution — Vectors, Chunks and the Vectorized Volcano Model

The plan tree settles what to do; execution settles how to do it batch by batch. The key here isn’t the algorithm — it’s memory layout: the same data arranged differently can be an order of magnitude faster. Part three of the plan series. 1. vector: logically an array, physically maybe not A vector is logically a fixed-size array, but it has several physical representations: Representation Use case Stores FLAT default contiguous array, same as logical CONSTANT whole column identical one value DICTIONARY low-cardinality strings indices + dictionary SEQUENCE increasing sequence base + increment UNIFIED generic algorithms contiguous data + selection Why so many? Because many columns during execution are constant or repetitive: ...

October 22, 2026 · 3 min · daviszhen