Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I have a table (dndlist) having columns (serviceareacode,phone,preferences,ostype,phonetype) In MYSQL 5.0 Database.

I have 16 csv files each containing 10000000 records and file size is avg (284 MB).

Currently I am using MYSQL "LOAD DATA" utility to import data. The example is :
SQL
LOAD DATA LOCAL INFILE 'E:\\TRAI\\trai0.csv'
INTO TABLE trai1   FIELDS TERMINATED BY "," ENCLOSED BY '"'  LINES  TERMINATED BY '\n'
(serviceareacode,phone,preferences,ostype,phonetype);

The above code is taking 5- 6 hours for each file to upload.

Please anybody suggest me how I can Insert,search as well as update records efficiently

I am waiting for your valuable response.

Thanks all.

EDIT
-------------
FYI 15 Crore = 150 million
Posted
Updated 11-Nov-11 0:34am
v4

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900