We are loading a 43 MB file containing 2 million rows with just 3 columns - all integers. The following is the syntax we used
LOAD DATA LOCAL INFILE 'D:\DatasetFact.txt' INTO TABLE DatasetFact FIELDS
TERMINATED BY ',' LINES TERMINATED BY '\n';
The following are some Sample rows
15253,89,226338677
15253,165,226340065
15253,231,226342095
The following is the table script
CREATE TABLE `entitydatasetpairs` (
`EntityKey` int(11) NOT NULL,
`CategoryKey` int(11) NOT NULL,
`LogicalPrimaryKey` int(11) NOT NULL
) ENGINE=BRIGHTHOUSE DEFAULT CHARSET=latin1;
This is running on the database server which has 12 GB of memory with a Quad Core processor running Windows Server 2008 Standard Edition.
To load this 2 million rows it has taken 31 minutes. This seems like a very slow.
Is there something we can do to improve the performance of this loading.
Thanks
Subu

