recalculate partitions every 20 ticks