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
583
November 30, 2016 06:10PM
299
November 30, 2016 08:17PM
373
November 30, 2016 08:27PM
364
December 01, 2016 07:36PM
258
December 04, 2016 07:11PM
392
December 04, 2016 09:15PM
291
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.