-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support EXCHANGE PARTITION with GLOBAL INDEX #54056
Comments
Like DROP PARTITION and TRUNCATE PARTITION, EXCHANGE PARTITION should be a fast meta-data only DDL (with the exception for 'WITH VALIDATION'). DROP/TRUNCATE PARTITION have implemented an optimized way, where it has delayed cleanup of the global index, by simply filtering out the old partition ids, and currently accepting that duplicate key errors will be given in-case writing not-yet cleaned up global index entries. But for EXCHANGE PARTITION it is more complicated. So this is what is needed to support EXCHANGE PARTITION with GLOBAL INDEX:
|
Due to the amount of time and resources needed for executing EXCHANGE PARTITION, while I don't think all of it is needed, I wonder if we should not implement: We could even consider if the UNIQUE/GLOBAL Index would be required, i.e. for |
MariaDB has implemented CONVERT TO here. |
Note that CONVERT TO does only support LIST/RANGE, not KEY/HASH partitioning, since those needs to keep the same number of partitions, which EXCHANGE PARTITION does. |
Enhancement
This is a placeholder issue for supporting GLOBAL INDEX in EXCHANGE PARTITION.
EXCHANGE PARTITION needs extra handling to support Global Index, #45133.
The text was updated successfully, but these errors were encountered: