pingcap / pingcap/tidb

speed up the merge global topn for partitioned table

Open
#50,761 0 comments 0 reactions 0 assignees View on GitHub
component/statistics sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
It costs minutes even hours when the user has 8000 partitions.

We need to speed up this process.

Contributor guide

Open the contributing guide

Research direction

The issue only identifies the merge-global-top-N process for partitioned tables and reports minutes-to-hours with 8,000 partitions; no files, tests, or entry points are named. First locate the implementation and its tests, then determine the current bottleneck. Done means the process is measurably faster for tables with many partitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.