pingcap/tidb

Show the spill to disk cost for Sort operator

Open

#25.850 aperta il 30 giu 2021

Vedi su GitHub
 (2 commenti) (0 reazioni) (2 assegnatari)Go (6186 fork)batch import
good first issuesig/executiontype/enhancement

Metriche repository

Star
 (40.090 star)
Metriche merge PR
 (Merge medio 14g 4h) (346 PR mergiate in 30 g)

Descrizione

Enhancement

Note that I'm not sure whether the explain analyze can get the spill cost of other operators.

For sort, if no spill to disk triggered, most of its cost is the memory sort. So we might not need to record the detailed cost in explain analyze. But the cost of it would be split into two parts if the spill is triggered. It first spills all things to disk. Then perform k-way merge and returning data row by row. It would be useful for investigating the actual cost part if we can record both of them or just the spill cost in EXPLAIN ANALYZE

Guida contributor