-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Feature Request
See tikv/tikv#19087 for details.
Is your feature request related to a problem? Please describe:
The current foreign key check is implemented by the exclusive locks in parent tables, which can easily be a bottleneck for the foreign key write workloads.
Describe the feature you'd like:
Use shared lock to unleash the performance of foreign key write workloads.
Describe alternatives you've considered:
Turn off foreign key constaint check(foreign_key_checks) which can introduce the risks of data correctness in foreign key use cases.
Teachability, Documentation, Adoption, Migration Strategy:
Introduce a new variable tidb_foreign_key_check_in_shared_lock, default off, and enable it when the user want more throughput in a single parent table's row.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.