pingcap/tidb

Show the spill to disk cost for Sort operator

Open

#25,850 创建于 2021年6月30日

在 GitHub 查看
 (2 评论) (0 反应) (2 负责人)Go (6,186 fork)batch import
good first issuesig/executiontype/enhancement

仓库指标

Star
 (40,090 star)
PR 合并指标
 (平均合并 14天 4小时) (30 天内合并 346 个 PR)

描述

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

贡献者指南