Let me tune the situation. We are trying to insert a modestly large number of rows into the MyISAM table (approximately 10-20 M per day):
+--------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+-------+
| blah1 | varchar(255) | NO | PRI | | |
| blah2 | varchar(255) | NO | PRI | | |
| blah3 | varchar(5) | NO | PRI | | |
| blah4 | varchar(5) | NO | PRI | | |
| blah5 | varchar(2) | NO | PRI | | |
| blah6 | varchar(2) | NO | PRI | | |
| blah7 | date | NO | PRI | | |
| blah8 | smallint(6) | NO | PRI | | |
| blah9 | varchar(255) | NO | PRI | | |
| blah10 | bigint(20) | YES | | NULL | |
+--------------+--------------+------+-----+---------+-------+
The only index besides this colossal primary key is in the blah7 date field. We use LOAD DATA INFILE and seeing what amazes me as a pretty terrible performance, about 2 hours to load the data. I was convinced that LOAD DATA INFILE is an order of magnitude faster than that.
, (5-6 ), LOAD DATA INFILE , . , , , ( , , , ?).
... . my.cnf LOAD DATA INFILE?
Jason