Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have fill the data from the MYSQL table using ODBC connection
in query I will be used the joins of the three tables then fill the data & all three combine table rows is 20729378 .
when i will be filled the dataset using dataadapter then it takes lots of time to fill data. near about half hour or not responding some time any method to read the data fast.

Thanks in advance........
Posted

My advice with regards to retrieving vast amounts of data from a database, would be to use a DataReader instead of a DataAdapter. This will speed things up considerably. On a second note, you should really be using the ADO.Net connector for MySQL rather than using OBDC. Here MySQL Connector .Net[^] is the download page.

Hope this helps
 
Share this answer
 
I'm not surprise it takes time: 20,000,000 rows combining in a DataAdapter is very silly. Why retrieve all the rows at once? Why not retrieve them either one at a time, or a page at a time? What are you doing with them that needs all those rows at the same time?
 
Share this answer
 
You need to use transactions. I was having same problem, starting transaction make it 500 time faster.
 
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