Had the same problem, although the request was more complex:
UPDATE CLB_SYNC_T SET PENDING_MESSAGES = PENDING_MESSAGES + ? WHERE USER_ID = ?
Using MyISAM as the default mechanism did not help, so I am returning to SELECT FOR UPDATE .
WITH CHOICE FOR UPDATE, performance improved ~ 10 times since MySQL did not lock the entire table to update the row.
mavarazy Mar 06 '12 at 19:22 2012-03-06 19:22
source share