Grouping and aggregation are cornerstones of relational databases. In MySQL, executing a GROUP BY statement involves a sophisticated dance between the query optimizer and the execution engine. With the introduction of the Volcano Iterator Model in modern MySQL (8.0+), this process has become highly modular, structured as a tree of self-contained iterators.

In this post, we’ll take a deep dive into the source code level of MySQL’s GROUP BY execution. We’ll start with the general flow and then dissect each major optimization and execution strategy with concrete SQL examples.

Continue reading

K3s generals

K3s is a lightweight Kubernetes distribution. Minimal footprint, single binary, stripped of non-essential components. Perfect for edge, IoT, and local dev. Fast startup, minimal memory.

Continue reading

Author's picture

Kevin Wang


software developer

Asia