MySQL Forums
Forum List  »  Performance

optimizing an update
Posted by: Paul Coene
Date: March 03, 2019 10:02AM

I need to optimize this statement. It takes 4 minutes. The items table is large (10000+) but those matching the where statement is less than 10.

This takes 4 minutes.

update items i
inner join client_server_faction_map m on i.factionmod4 = m.serverid
set i.factionmod4 = m.clientid
where i.factionmod4 > 0;

Options: ReplyQuote

Written By
optimizing an update
March 03, 2019 10:02AM
March 03, 2019 11:18AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.