|
-
Feb 3rd, 2004, 01:39 PM
#1
Thread Starter
Lively Member
Speed Difference Data Reader vs DataSet
Can anyone tell me if there is a real big speed difference between quering into a datareader as compared to a dataset.
This could be a query ranging from pulling 1 record to 3000+ records.
-
Feb 3rd, 2004, 04:57 PM
#2
yay gay
If speed is really an issue then use DataReader whatever the number of rows you'll retrieve..
If you want to change something etc maybe a dataset will be the best, it all depends in what you want
\m/  \m/
-
Feb 3rd, 2004, 07:15 PM
#3
Registered User
why don't you test it out yourself :shrug:
-
Feb 3rd, 2004, 07:37 PM
#4
Frenzied Member
DataReader is always faster. The key is understanding the differences. That will make your choice a little bit easier. The DataSet is an in memory representation of the DB. So if you are gonna be doing and updates, deletes or adding new rows, I would suggest using a DataSet.
DataReader is good for just getting the data to present to the user, since its using a forward only cursor.
-
Feb 4th, 2004, 09:37 PM
#5
Fanatic Member
When I tested this, the dataset used more memory and was slower than the datareader (which we all know) but the difference got narrow as we started pulling more data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|