数据划分
按范围、哈希等方式预先划分数据,支撑扩展性与负载均衡。
flowchart LR K[Key] --> P1 K --> P2 K --> P3
int p = Math.floorMod(key.hashCode(), n);
def hash_partition(key, n): return hash(key) % n