Closed (fixed)
Project:
Demonstration site (Sandbox / Snapshot)
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Jun 2008 at 23:36 UTC
Updated:
27 Aug 2008 at 16:32 UTC
MySQL 4.x and later support disabling of indices to speed up the import of large database dumps by adding a proprietary ALTER TABLE statement before and after INSERTing the data. This should dramatically improve the import performance, from their Reference Manual:
ALTER TABLE ... DISABLE KEYS tells MySQL to stop updating non-unique indexes. ALTER TABLE ... ENABLE KEYS then should be used to re-create missing indexes. MySQL does this with a special algorithm that is much faster than inserting keys one by one, so disabling keys before performing bulk insert operations should give a considerable speedup.
Comments
Comment #1
sunCommitted to all branches.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.