关于asp.net性能的一个问题 [英] A Question About asp.net Performance

查看:70
本文介绍了关于asp.net性能的一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< asp:SqlDataSource>之间的性能是否有任何差异?控制和后面的代码中的sqldatareader?



为了获得更好的性能,应该使用女巫?

谢谢...

Is there any difference in performance between the <asp:SqlDataSource > control and the sqldatareader in code behind?

to get better performance witch on should be used?
thanks...

推荐答案

两个是不同的。您可以使用sqldatareader了解如何提高性能 其他 .Sqldatareader是访问数据库最快的。有简短的讨论 此处
Two are different.You can have a look at how to increase performance using sqldatareader here.Sqldatareader is the fastest to access the database.There is brief discussion over here


btw, sql数据源在后台执行datareader。所以两个人之间没什么区别。
btw, the sql data source executes a datareader in background. so there isnt much difference between theese two.


这篇关于关于asp.net性能的一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆