Mysql partitioning

From wikinotes
Revision as of 02:21, 8 September 2022 by Will (talk | contribs)

A partitioned table's contents are stored in different locations (ex. different servers).
A partitioning key is passed to a function to determine which partition a row or column should belong to.

Partitions must share the same storage-engine

Partition Methods

horizontal:  rows are partitioned
vertical:    cols are partitioned

Partitioning Strategies

Partition Introspection

EXPLAIN PARTITIONS SELECT * FROM users;  # list partitions, partition-key for query