-
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
Global Index for partitioned tables #45133
Comments
Maybe support for Also we need to consider the support of the planner part. Like different cost between global index and local index in some executors. |
This is an urgently needed feature. |
ADD PARTITION is already supported, it uses the same logic as for TRUNCATE PARTITION, i.e. reading from the Global Index will filter away dropped/added partitions, so it will only show index entries from partitions the transaction/schema version sees. Currently filtered here. |
@Defined2014, for the global index, should there be some way to specify placement rules? I don't think there are any for normal indexes? |
I think it will follow table's placement rules and it is in line with my expectations. What do you think @mjonss ? And we could add some test cases for this. |
@Defined2014 I expect the same, i.e. it will follow the table level's placement rules, so we should probably document it and add a test for it. |
I think the exists test cases already covered this situation(by check the key ranges for |
…s with concurrent DML (pingcap#57114) ref pingcap#45133, close pingcap#56822, close pingcap#57510
Closing as done, Stage 2 completed. GA in v8.4 and included in LTS release v8.5. |
Enhancement
Development tasks for:
Make GLOBAL INDEX General Available
Stage 1 - full implementation, but Experimental
memIndexReader
executor #52660index_merge
andmem_index_merge
#52971[ ] Support in EXCHANGE PARTITION? Support EXCHANGE PARTITION with GLOBAL INDEX #54056Will not support EXCHANGE PARTITION for Global Index, will cause too long state where double writing is needed. Better to add support for CONVERT PARTITION/TABLE instead, possibly later.admin [recover | cleanup] index
with global index #53439information_schema.indexes
table to indicate it's a global index or not. #53342Stage 2 - Stabilise / General Available
Optional / future enhancements
skylinePruning
function, let user easier to select global index. planner: consider path is global index path or not inskylinePruning
function #56196The text was updated successfully, but these errors were encountered: