How table rebalancing works