Query optimizations
If the partitioning expression and the partition type have been carefully selected, most queries will only involve one partition or a set of partitions.
In many cases, the optimizer will find out which partitions are not relevant for the current query. This optimization is called partition pruning.
Also, the user can use a SQL clause to specify the list of partitions that must be used. This is called partition selecting.
Note
However, in MariaDB, queries are never parallelized. Even if the optimizer knows that two partitions must be read, and those partitions are on different disks, the same thread will read them sequentially. In particular, one can expect full table scans and full index scans on partitioned tables to run much ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access