MySQL Forums
Forum List  »  Performance

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);

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

Options: ReplyQuote

Written By
Re: Improve performance when Insert into ... select ...
December 15, 2016 08:18PM

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.