Disk-based sort executor #12431
Labels
epic/memory-management
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
sig/execution
SIG execution
type/enhancement
The issue or PR belongs to an enhancement.
type/new-feature
Feature Request
Is your feature request related to a problem? Please describe:
The sort executor is keeping all the chunk data in memory. It should be spilled over to disk when
mem-quota-query
in tidb.toml is exceeded.Describe the feature you'd like:
After #11607, we can consider using a disk-based chunk data for sort executor avoiding OOM.
It's some tips here,
chunk.ListInDisk
whenrowChunks
needs to spill over to disk.tidb/executor/hash_table.go
Lines 276 to 283 in 510a851
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: