You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It allows you to enforce tables have a primary key. It has more meaning in MySQL because row-based replication benefits from it (Edit that: it very much applies to TiCDC), and InnoDB is less efficient when using its internal primary key. But it's still useful.
I discovered that TiCDC does not replicate tables without a primary key by default (although there is now an option for it). So this feature request actually has a lot of usage in TiDB to ensure CDC replication.
Note that MySQL now is getting another related feature that helps with this: Generated Invisible Primary Keys. It seems that this is already in the docs, but the version of MySQL that contains this (8.0.30) is not yet released.
This may also benefit TiCDC etc if we would implement it in TiDB.
Activity
7yyo commentedon Nov 11, 2021
hello @morgo I want to try to add this feature.
morgo commentedon Nov 11, 2021
Glad to hear! Please feel free to /assign it to yourself.
7yyo commentedon Nov 11, 2021
/assign
morgo commentedon Jul 8, 2022
I discovered that TiCDC does not replicate tables without a primary key by default (although there is now an option for it). So this feature request actually has a lot of usage in TiDB to ensure CDC replication.
dveeden commentedon Jul 12, 2022
Note that MySQL now is getting another related feature that helps with this: Generated Invisible Primary Keys. It seems that this is already in the docs, but the version of MySQL that contains this (8.0.30) is not yet released.
This may also benefit TiCDC etc if we would implement it in TiDB.