What is faster: DataReader or DataSet or something else?
Hi,
I need to read 250,000 records and show this information. I am using DataReader and it takes 8 seconds. I need to raise it to 0.8 seconds atleast. What is faster: DataReader or DataSet or something else
Increase your network's bandwidth then. You
can't just expect all of those bytes to magically cross the wire in 0.8
seconds. No .NET class is going to help you gain that kind of speed
improvement.
DataReader is much faster than DataSet. Actually DataSet is populated using DataReader object.
I guess in your case the bottleneck is in the amount of data you transfer to client application. Try to reduce the row size you send to the client (don't select columns unless they are required). Another way is to show only portions of data as the user typically doesn't need to have the whole data list available.
Can you post the table structure and query you are running
If you really need all the data than I cannot see how to speed up your task. One thing yo may do is to perform data load/processing in a separate thread, but it will just make an application responsive to user during data load.
What is faster: DataReader or DataSet or something else?
Dems
My computer has 512 MB of memory.
My application must run on 256MB at clients computers.
Thank's
Alexei
Andy.NET2005
I am using the sql server on local machine.
Thank's
Alexei
hainm
crimzonthunder
--
Adam Machanic
Pro SQL Server 2005, available now
http://www..apress.com/book/bookDisplay.html bID=457
--
Satish Chandran
I guess in your case the bottleneck is in the amount of data you transfer to client application. Try to reduce the row size you send to the client (don't select columns unless they are required). Another way is to show only portions of data as the user typically doesn't need to have the whole data list available.
hiling
--
Adam Machanic
Pro SQL Server 2005, available now
http://www..apress.com/book/bookDisplay.html bID=457
--
Andy Lichey
If you really need all the data than I cannot see how to speed up your task.
One thing yo may do is to perform data load/processing in a separate thread, but it will just make an application responsive to user during data load.
Vlad Dogaru
I have tryed indexes, stored procedure and other known ways... But it doesn't help me much and sometimes i have the worth time.
Thank's
Alexei
chiln1208
I need the all data. I am using it for drawing objects on the screen.
thank's
Alexei