This is a discussion on optimizing a 10-hour process within the MySQL forums, part of the Database Server Software category; --> I have a lengthy process that consists of these 4 steps: 1) Create a new table and load data ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have a lengthy process that consists of these 4 steps: 1) Create a new table and load data into it using LOAD DATA INFILE. The input file is about 300gb (ASCII). The resulting myisam file is ~100gb (unpacked). 2) Create two indexes using ALTER TABLE. 3) Pack the table using myisampack -- this wipes the index file from step 2 4) Re-create indexes using myisamchk Is there a way to skip step 2 and create indexes once, after the table is packed? Cheers, Slawomir |