pingcap / pingcap/tidb

optimize the `SplitKeyRangesByLocations` performance

Open
#37,107 0 comments 0 reactions 1 assignee Claimed by @tiancaiamao View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

On very large cluster, where there are really **lots of regions**, the `SplitKeyRangesByLocations` performance is not good enough.

It would be nice if we can optimize here:

![image](https://user-images.githubusercontent.com/1420062/184619029-8059550c-1580-4adc-b8fe-dd1e9e0d8452.png)

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.