I am working on an apparent performance problem possibly involving row lock contention, and I'm seeking to understand whether INSERT ... ON DUPLICATE KEY UPDATE Foo=Foo
(with a no-op in the UPDATE clause) obtains the same kind of lock as it would if the UPDATE clause were not a no-op, or if MySQL can recognize the no-op and obtain a less-expensive lock. Googling for the relevant documentation has thus far failed to provide an answer either way.
INSERT .. ON DUPLICATE KEY UPDATE
butINSERT IGNORE
.SHOW CREATE TABLE
. How many rows are being inserted at once?EXPLAIN INSERT ...