Partitioning
What Stays vs Moves
A key moves exactly when its old and new partitions differ.
What stays and what moves
A rebalance table is the old route and new route for each key. A key stays only when those partition names match. Note: the moved and stayed lists are recomputed from the route comparison.
Range moved set
In the range case, moved count is 1 and stayed count is 4.
Range and hash sharding are exact routing functions on tiny pinned key sets; real sharding adds consistent hashing, skew, hot partitions, and rebalancing cost, which are empirical and operational concerns beyond this model - no product claims.
Hash moved set
In the hash case, moved count is 5 and stayed count is 3. Note: same keys can move differently under a different routing function.
Range and hash sharding are exact routing functions on tiny pinned key sets; real sharding adds consistent hashing, skew, hot partitions, and rebalancing cost, which are empirical and operational concerns beyond this model - no product claims.
Summary
Moved-key sets are the exact audit trail of a rebalance. Note: the model names movement but does not estimate migration cost.