I've discovered that the partitions used on a particular table are hurting query performance and would like to remove the partitions from the table. Is there an easy way to do this? The table in question has 64 partitions. Based on some initial investigation, I've come up with the following options. Is there a better way?
- Copy data into another table, drop all partitions, then copy the data back into the original table
- Copy data into another table, drop the original table, then rename the new table and rebuild the indexes
- Use MERGE PARTITION to merge all partitions into a single partition
Thoughts?