MySQL Forums
Forum List  »  Performance

Re: alter table ... order by ...
Posted by: Gordon Bruce
Date: December 30, 2005 10:13AM

With this kinid of insert volume you might play with

SELECT ... INTO OUTFILE 'outfile_name'

LOAD DATA INFILE 'outfile_name'

I know LOAD DATA runs much faster than an INSERT especially an INSERT...SELECT.

One downside to this approach is you will have to remove the "outfile_name" file after the LOAD DATA, but should be doable if the process is initiated from a script.

One other thought. You may want to think about running multiple parallel "INSERT" processes to minimize the time when some tables have new rows while others do not.

Options: ReplyQuote


Subject
Views
Written By
Posted
3197
December 22, 2005 11:12AM
1278
December 23, 2005 02:24PM
1383
December 28, 2005 04:32PM
Re: alter table ... order by ...
1400
December 30, 2005 10:13AM


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.