MySQL Forums
Forum List  »  Performance

Re: Insert problems on very large DB
Posted by: Mike Hillyer
Date: November 25, 2004 09:47AM

ALTER TABLE tablename DISABLE KEYS;
LOAD DATA ...
ALTER TABLE tablename ENABLE KEYS;

It is usually faster to build the index information all at once rather than one row at a time.

Mike Hillyer, Technical Writer
MySQL AB, www.mysql.com
Office: +1 403-380-6535

Blog: http://www.openwin.org/mike

"The Open Source movement has become a major force across the software industry, and MySQL is the world's most popular open source database."
--Fortune Magazine

Options: ReplyQuote


Subject
Views
Written By
Posted
3784
November 25, 2004 07:32AM
Re: Insert problems on very large DB
2338
November 25, 2004 09:47AM
2218
November 25, 2004 01:21PM
2275
November 25, 2004 01:48PM
2337
November 25, 2004 02:32PM


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.