Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Resource cannot be well limited in large transactions #65554

@rleungx

Description

@rleungx

Enhancement

For large transactions (e.g. DELETE ... affecting ~40k rows), TiDB splits the SQL into hundreds or thousands of KV requests and dispatches them concurrently (default prewrite concurrency is 128). These batch requests can instantly saturate TiKV resources (coprocessor, scheduler CPU), creating traffic spikes that consume large goroutines and lock resources, delaying or blocking other transactions. Timeouts and retries further amplify the spikes, leading to lock conflict storms and high overhead from failed transactions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions