开发者

Performance Concerns between DataTable and SqlDataReader to fill Data with FlexGrid

开发者 https://www.devze.com 2022-12-10 09:29 出处:网络
Which one is more faster between DataTable and SqlDataReader while I\'m try开发者_如何学Going to fill Data into FlexGrid with VB.NET?Depends what are you trying to do, if you just need to get x rows t

Which one is more faster between DataTable and SqlDataReader while I'm try开发者_如何学Going to fill Data into FlexGrid with VB.NET?


Depends what are you trying to do, if you just need to get x rows then Reader would be faster but if you will manipulate or want to use caching for result set then go for Data collection of any kind.


SqlDataReader is faster as it is readonly forward only. However DataTable is xml based and is slower.


SqlDataReader is much faster. It is readonly and you can only forward run on it.

I use readers all the time unless it's an emergency...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号