Welcome Guest, Not a member yet? Register   Sign In
Do you ever use "ON DUPLICATE KEY UPDATE"? (MySQL)
#5

I think the performance hit on this sort of statement comes when you are trying to update the key of an existing record. Otherwise, it performs on par with an insert or update.

I confess I did not look that closely at your code but isn't what you're doing basically served by $this->db->replace() in Query Builder?
Reply


Messages In This Thread
RE: Do you ever use "ON DUPLICATE KEY UPDATE"? (MySQL) - by dave friend - 09-07-2016, 03:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB