Mysql – Deadlock during update the same table
From inside a procedure I need to separate 4k records of one big table to process it each one in a separate cursor. UPDATE queue SET `status` = 'enqueued', `hash` = new_hash -- prev generated hash WHERE `status` = 'new'…