Similar Threads:
1.Dataset VS DataReader - Performance
Hi All
We have had a HOT discussion on the subject ... to resolve this I need a authentic answer (preferably with some supportings) to my question follows...
What and How much difference (in terms of end-user user response time in seconds) it will make to an end-user of a web site if we use Typed DataSet as a dataobject OR custom defined dataobject..
1) with @ 100 - 200 concurrent users in given circumstances...
2) web page needs to process about 500 Rows (@ 50 columns) (MAX 1000 rows in few circumstances.
3) once the processing is done dataset/datareader will be cleaned-up.
4) if we dont use dataset we will be using some custom defined dataobject, populated programmatically using by looping thru datareader
5) Inclination towards using typed - dataset is owing to ease of development, and other out-of-the box functionality provided by microsoft
Any lights on this will be appriciated.
2.DataReader vs DataSet Performance.
hi Folks,
I am about to start development on a new framework, and contemplating
whether to use datareader to create objects or to use DataSets to create
object.
For a test scenario i created two classes , with each having 8
properties. Then i created two Data creation logics, one that fetched
dataSets from DAL and creates the objects, and second one creates
objects from DataReader.
the dataaccess is done through the microsoft dataaccess application block
these are my performance results.
Objects created 4 220 22000
DataReader 1.40 2.006 50.59
(Avg Time in secs)
DataSets 1.42 2.01 50.2
(Avg Time in secs)
the code is exactly the same (except the actual creation logic) , the
database is SQL Server 2000
so the question is , are datareaders really fast (as microsoft says) or
am i missing something. ?
Please comment
3.Performance - Datareader vs. Dataset
This is more of a curious observation than anything else.
We were in a scenario where we needed to pull about 1000
records from the database. We only needed read access, so
we used a datareader because it was supposed to perform
better.
As we ran that app, we discovered that the datareader was
pretty slow looping through it's records...It was
accounting for about 65% of the total page processing
time. We thought that there were maybe too many records,
so we set up a test to see how a dataset would perform.
After we ran several test runs, we found almost no
difference in performance at all...we're talking less than
one-half of 1% (0.3521 sec versus 0.3529 sec - average
over 100 test trials). The allocation of processing time
is completely different (the dataset uses it's bulk
pulling the data while the datareader uses it's bulk
looping through it's records), but overall performance is
the same.
Does anyone know anything about this? I thought for
read/forward-only access datareaders were supposed to be
faster? Any input would be appreciated. Thanks.
Andre T
P.S. We also ran a test pulling about 250 records, and the
results were the same.
4.DataReader vs DataSet Performance.
hi Folks,
I am about to start development on a new framework, and contemplating
whether to use datareader to create objects or to use DataSets to create
object.
For a test scenario i created two classes , with each having 8
properties. Then i created two Data creation logics, one that fetched
dataSets from DAL and creates the objects, and second one creates
objects from DataReader.
the dataaccess is done through the microsoft dataaccess application block
these are my performance results.
Objects created 4 220 22000
DataReader 1.40 2.006 50.59
(Avg Time in secs)
DataSets 1.42 2.01 50.2
(Avg Time in secs)
the code is exactly the same (except the actual creation logic) , the
database is SQL Server 2000
so the question is , are datareaders really fast (as microsoft says) or
am i missing something. ?
Please comment
5.Best Practices - Adapter/dataset vrs Command/DataReader
I'm a new VB .Net developer with a few "best practice"
questions.
Is there a best practice to identify when to use DataSets
and DataAdapters versus the Command object and the
DataReader?
Also, is there a "best practice" defined for which is the
better method to create the dataset and dataadapter?
Should you create them through code, including setting all
the binding properties for any form controls? Or should
you drag & drop them from the tool bar in the IDE and set
the properties that way?
Any suggestoins would be appreciated.
thanks
Val
6. DataReader from DataSet (Top 10 reasons to use DataTables instead of DataReaders)
7. SP in Typed Dataset Timeout vs Management Studio Good Performance
8. Performance with DataSet: suggestions for best practices?