When to rebalance and when to rebuild