I'm trying to perform over than 10k queries to mysql server from Python and here is my prepared query statement
UPDATE `rates`
SET `in`=%s, `out`=%s, `amount`=%s, `minamount`=%s, `maxamount`=%s
WHERE `from`='EXMRUB' AND `to`='YAMRUB' AND `id_site`= 1
The problem is that it runs really slow, I mean it takes about a 5 minute to perform 10k updates, how can I modify, my query to make it faster?