pingcap / pingcap/tidb

Need a simple way to refresh the primary key cache

Open
#45,509 1 comment 0 reactions 0 assignees View on GitHub
type/feature-request
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Feature Request

**Is your feature request related to a problem? Please describe:**

When the data migration is performed, the primary key is generated as explicitly, but when the application data is written, the primary key is generated in hidden, which will cause the primary key to conflict and need to refresh the primary key cache,we may need restart the database or alter table tablename auto_increment = 0,This is not very friendly

**Describe the feature you'd like:**

Need a simple way to refresh the primary key cache

**Describe alternatives you've considered:**

**Teachability, Documentation, Adoption, Migration Strategy:**

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.