MySQL Forums
Forum List  »  Newbie

Re: MYSQL update taking to long need help
Posted by: Peter Brawley
Date: January 31, 2017 12:22PM

innodb_buffer_pool_size should be 65-75% of RAM available to MySQL.

The right join persuades MySQL it might as well read the whole cqt table, but a foreign key links phase3.linking to cqt.trayid, so there can be no phase3.linking value unmatched by a cqt.trayid value. So a right join from cqt to phase3 (equivalent to a left join from phase3 to cqt) on those two columns is incoherent. Lose "right" in the update command so MySQL can use the cqt trayid index.

Options: ReplyQuote


Subject
Written By
Posted
Re: MYSQL update taking to long need help
January 31, 2017 12:22PM


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.