MySQL Partition Pruning: Why the Optimizer Scans Every Partition Anyway
You partitioned the table by month and the queries got no faster, because EXPLAIN still lists all 48 partitions in the plan. Here is why pruning fails and the rewrites that bring it back.