pingcap / pingcap/tidb

Drop partition DDL without Global Index uses more State changes than needed

Open
#55,929 0 comments 0 reactions 0 assignees View on GitHub
component/tablepartition type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Drop partition is currently using StatePublic->StateDeleteOnly->StateDeleteReorganization->StateNone regardless if the table has a global index or not.

It should only need a single state change StatePublic->StateNone for dropping a partition, similar to how Truncate Partition works.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.