MySQL Forums :: Performance :: Improve performance when Insert into ... select ...


Advanced Search

Re: Improve performance when Insert into ... select ...
Posted by: Lyu Joey ()
Date: December 15, 2016 08:18PM

The main procedure structure is like this:

WHILE TO_DAYS(syncDate) <= TO_DAYS(Now()) DO
call dw.sp1(syncDate);
call dw.sp2(syncDate);
call dw.sp3(syncDate);
call dw.sp4(syncDate);
call dw.sp5(syncDate);
SET syncDate = DATE_ADD(syncDate, INTERVAL 1 DAY);
END WHILE;

the syncDate initial value is '2016-01-01', each sub-sp has 3 or 4 'insert into ... select ’ SQL statements

Options: ReplyQuote


Subject Views Written By Posted
Improve performance when Insert into ... select ... 332 Lyu Joey 12/15/2016 03:59AM
Re: Improve performance when Insert into ... select ... 214 Peter Brawley 12/15/2016 10:00AM
Re: Improve performance when Insert into ... select ... 242 Lyu Joey 12/15/2016 07:34PM
Re: Improve performance when Insert into ... select ... 195 Lyu Joey 12/15/2016 08:08PM
Re: Improve performance when Insert into ... select ... 211 Lyu Joey 12/15/2016 08:18PM
Re: Improve performance when Insert into ... select ... 205 Peter Brawley 12/15/2016 09:16PM


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.