punjabtechnicaluniversity.blogspot.in
Twisted Question :- Why is DataSet slower than DataReader ?
Following are the major difference between “DataSet” and “DataReader” :-
2.When application needs to access data from more than one table “DataSet” forms the best choice.
3. If we need to move back while reading record’s , “datareader” does not support this functionality.
Twisted Question :- Why is DataSet slower than DataReader ?
Following are the major difference between “DataSet” and “DataReader” :-
1.“DataSet” is a disconnected architecture , while “DataReader” has live connection while reading data.So if we want to cache data and pass to a different tier “DataSet” forms the best choice and it has decent XML support.
2.When application needs to access data from more than one table “DataSet” forms the best choice.
3. If we need to move back while reading record’s , “datareader” does not support this functionality.
4. But one of the biggest drawbacks of DataSet is speed.As “DataSet” carry considerable overhead because of relations,multiple tables etc speed is slower than “DataReader”.Always try to use “DataReader” whereever possible. , as it’s meant specially for speed performance.
0 comments:
Post a Comment
North India Campus