How Data Partitioning Strategies Cut Costs and Speed Queries