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
multiple primary/unique indexes can be problematic (INSERT .. ON DUPLICATE UPDATE)
INSERT ... ON DUPLICATE KEY UPDATE statements on tables with multiple primary or unique keys. When executed against a table that contains more than one primary or unique key, this statement is considered unsafe, being sensitive to the order in which the storage engine checks the keys, which is not deterministic, and on which the choice of rows updated by the MySQL Server depends.
An INSERT ... ON DUPLICATE KEY UPDATE statement against a table having more than one unique or primary key is marked as unsafe for statement-based replication beginning with MySQL 5.6.6. (Bug #11765650, Bug #58637)
Due to a MySQL 5.6 bug InnoDB tables that do not have primary key defined has problems with replication of heavy transactions (with tens of thousands of rows involved).
We noticed this behavior during updateSpecialPages.php script run which performs heavy (DELETE + INSERT queries) operations on querycache table. This was quite visible when ruvlab wiki was processed - the maintenance script was performing a transaction with delete and insert of 75k rows causing huge lag on DB cluster.
INSERT .. ON DUPLICATE UPDATE
)An example
The text was updated successfully, but these errors were encountered: