Performance question: ON DUPLICATE KEY UPDATE vs UPDATE (MySQL) -


is there performance difference between insert on duplicate key update , update?

if know values can updated - should use update or not matter?

there difference.

the insert query has check constraints on every column see if they're violated adding row. if so, needs find matching row update , perform update.

an update query has find row update , perform update.

if know row exists, should update it.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -