merge sort for partition table #22408
Labels
component/executor
component/tablepartition
This issue is related to Table Partition of TiDB.
sig/planner
SIG: Planner
Feature Request
Is your feature request related to a problem? Please describe:
Describe the feature you'd like:
For sort on partition tables, we can sort each partition first, and merge sort those ordered inputs. Then for each partition, it may be able to utilize an index to provide the required order. That would accelerate the execution a lot and reduce memory / cpu usages.
Describe alternatives you've considered:
No.
Teachability, Documentation, Adoption, Migration Strategy:
This can accelerate the execution a lot and reduce memory / cpu usages for TiDB. Besides, this kind of query is supposed to be common in backup tools, this feature would benefit them as well.
The text was updated successfully, but these errors were encountered: