Skip to content

global-sort: reduce number of SST ingested into TiKV #59962

@D3Hunter

Description

@D3Hunter

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

currently, global sort always split data into ranges of 96M, but TiKV already increased the default region size to 256M now, so we will ingest 3 SST files per region.
for import-into see

int64(config.SplitRegionSize),
int64(config.SplitRegionKeys),
, for add-index see
int64(config.SplitRegionSize), int64(config.SplitRegionKeys),

and the ingest performance of TiKV slows down when the number of SST files grows too much, say more than 300K

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

v8.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions