I have a table with approximately 7 million rows. Once a day, I need to bulk import around 200,000 new rows into this table. To do this, I am first disabling keys on the table, using LOAD DATA INFILE
, and then re-enabling keys on the table.
The problem I am having is with the ALTER TABLE my_table ENABLE KEYS
statement.
It takes around 15 minutes to complete. I am trying to improve the performance by increasing myisam_sort_buffer_size
, but it doesn't seem to help. Any other ideas?