pingcap / pingcap/tidb

Optimize reorganize partition backfill data copying

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

Description

## Enhancement
In #60132 to be fully consistent we check all rows in the new reorganized partition by reading them before writing them, to avoid overwriting concurrent DMLs (insert/update), but it should be possible to optimize the optimistic path, by trying to write and fail if the key already exists, by using the `PresumeKeyNotExists`.

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.