MySQL Forums :: Performance :: "Sending Data" is taking time post migration from 5.1 to 5.6


Advanced Search

Re: "Sending Data" is taking time post migration from 5.1 to 5.6
Posted by: Peter Brawley ()
Date: March 14, 2017 09:42AM

Ah, you neglected to mention that the Update has a Join!

update bct_va_res1_tmp a
join bct_prod b on a.head_prodno=b.prodno and a.head_rstate=b.rstate
set a.description=b.description
where a.level=0 ;

MySQL can't find an index for b so it's having to examine 113*556464=62,880,432 rows; bct_prod needs index(prodno,rstate).

Options: ReplyQuote


Subject Views Written By Posted
"Sending Data" is taking time post migration from 5.1 to 5.6 145 Aldrin Davis 03/10/2017 02:41AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 54 Peter Brawley 03/10/2017 12:47PM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 50 SAIKIRAN CHEVITI 03/14/2017 06:40AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 57 Peter Brawley 03/14/2017 09:42AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 65 SAIKIRAN CHEVITI 03/15/2017 08:50AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 79 Peter Brawley 03/15/2017 12:43PM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 47 SAIKIRAN CHEVITI 03/16/2017 02:32AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 74 Peter Brawley 03/16/2017 05:52AM
Re: "Sending Data" is taking time post migration from 5.1 to 5.6 39 SAI KIRAN 03/17/2017 12:08AM


Sorry, only registered users may post in this forum.

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.