pingcap / pingcap/tidb

Reduce overhead for removing TopN from samples

Open
#61,738 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

During stats collection, we will build TopN and then remove those from the samples before building buckets. The current process has a loop within a loop - which can be optimized to improve performance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.