MySQL Forums
Forum List  »  InnoDB

Fast Update
Posted by: Ferdie Palero
Date: November 30, 2016 06:10PM

Hi,

Anyone can help for fast update? The update statement below take 4hours for 65k records.

update exclusive a
set a.deleted_date=now()
where concat(a.lname,a.fname,a.mname,a.address,a.city,a.state,a.zip) not in
(select concat(b.lname,b.fname,b.mname,b.address,b.city,b.state,b.zip) from
exclusive_temp b)
and a.deleted_date is null;

Thanks in advanced.

Regards,
FPalero

Options: ReplyQuote


Subject
Views
Written By
Posted
Fast Update
1862
November 30, 2016 06:10PM
755
November 30, 2016 08:17PM
781
November 30, 2016 08:27PM
715
December 01, 2016 07:36PM
793
December 04, 2016 07:11PM
718
December 04, 2016 09:15PM
692
December 05, 2016 12:06AM


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.