title: How to No-op if a duplicate key exception occurs?
body: <p>I know I can use the <code>ON DUPLICATE KEY UPDATE</code> and then do a no-op operation in MySQL if a duplication exception occurs, but is there a more efficient way? </p>