You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of the deleteOldPartitions() function directly drops old partitions using DROP TABLE. This approach locks the parent table, potentially causing contention and delays in high-concurrency environments.
Objective is refactor the deleteOldPartitions() function to use ALTER TABLE ... DETACH PARTITION CONCURRENTLY before dropping partitions. This will reduce locking on the parent table and improve efficiency in partition management.to