Skip to content

Optimize partition deletion workflow in deleteOldPartitions() #786

@pashagolub

Description

@pashagolub

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsinksWhere and how to store monitored data

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions