I have table structure like below:
CREATE TABLE IF NOT EXISTS `dnddata` (
`numbers` varchar(10) NOT NULL,
`opstype` char(1) NOT NULL,
PRIMARY KEY (`numbers`)
) ENGINE=MYISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (numbers)
PARTITIONS 20 */;
When I inserting data into this table taking long time.
Taking 50 min to insert 3 million records.
I have used load data
and insert into dnddata SELECT * from another_myisamtable
.
Both methods are taking nearly equal time.
Same table without partition taking less than 2 min.
I have to insert data of 50 million records.
Please suggest which is the best way to insert this many records.