AI now suggests only adding unique constraint to the tables not having a PK.
Main motivation here is still to be able to use e.g. InnoDB Cluster, which requires uniqueness of the entries to the tables, in an order to have proper replication.
Any thoughts from esteemed community members on that?nstead of adding an AUTO_INCREMENT PRIMARY KEY, you could only add the unique constraint (UNIQUE KEY (user_id, group_id)). This would ensure data integrity without modifying the core structure too much, thus reducing potential conflicts with future updates.
Main motivation here is still to be able to use e.g. InnoDB Cluster, which requires uniqueness of the entries to the tables, in an order to have proper replication.
Statistics: Posted by Foxina — Sat Oct 12, 2024 3:25 pm