Delete TiFlash placement rules in gc worker may take a long time #54068
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
component/tiflash
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Now in gc worker, we delete placement rules of TiFlash one by one. It may takes a long time when
drop database
ordrop table
with a lot of partitions. We can easily optimize it by batch delete.tidb/pkg/store/gcworker/gc_worker.go
Lines 1547 to 1557 in 8f56847
The text was updated successfully, but these errors were encountered: