如何提高gridview的性能,需要时间来加载 [英] How to improve perfomance of gridview, it's taking time to load

查看:77
本文介绍了如何提高gridview的性能,需要时间来加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库中有3个缺少记录。我需要将这些记录绑定到页面大小为20的gridview。当我点击下一页时,需要更多时间来加载下一页。





请帮帮我。

I have 3 lacks records in my Database.I need to bind those records to gridview with page size 20.When I click on next page it is taking more time to load next page.


Please help me.

推荐答案

访问这里....



http:// www。 dotnetspider.com/forum/331353-How-to-Improve-Gridview-Performance-in-ASPNET.aspx [ ^ ]
visit Here....

http://www.dotnetspider.com/forum/331353-How-to-Improve-Gridview-Performance-in-ASPNET.aspx[^]


那么多记录肯定会花费更多比一堆秒加载。



不要这样做。加载较少的数据。还记得按需加载吗?



在显示数据时使用分页/过滤。



在数据库中。

SQL Server 2005分页结果 [ ^ ]



在前端

GridView多重过滤器AJAX控件 [ ^ ]

重复分页和分页功能 [ ^ ]



查看本系列的数据库优化

< a href =http://www.codeproject.com/KB/database/Opt imizeDBUseIndexing.aspx>优化SQL Server中数据访问的十大步骤:第一部分(使用索引) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第二部分(重新考虑TSQL并应用最佳实践) [ ^ ]

优化SQL Server中数据访问的十大步骤:第III部分(应用高级索引和非规范化) [ ^ ]

返回顶部在SQL Server中优化数据访问的10个步骤:第IV部分(诊断数据库pe性能问题) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第五部分(优化数据库文件并应用分区) [ ^ ]
That much records surely'd take more than bunch of seconds to load.

Don't do that way. Load less data. Remember "Load on demand"?

Use paging/filtering while displaying the data.

In database side
SQL Server 2005 Paging Results[^]

In frontend
GridView Multiple Filter AJAX Control[^]
Repeater with Paging and Sorting Features[^]

Check this series for database optimization
Top 10 steps to optimize data access in SQL Server: Part I (use indexing)[^]
Top 10 steps to optimize data access in SQL Server: Part II (Re-factor TSQL and apply best practices)[^]
Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)[^]
Top 10 steps to optimize data access in SQL Server: Part IV (Diagnose database performance problems)[^]
Top 10 steps to optimize data access in SQL Server: Part V (Optimize database files and apply partitioning)[^]


狂野猜测代码未提供是你获得所有记录并填写一些。

所以,如果在一个页面上你得到20记录然后没有必要得到3缺乏记录。您可以一次获得前20条记录并显示它,并在下一页上获得另外20条记录。
Wild guess as code not provided is that you are getting all records and filling some.
So, if on one page you get 20 records then there is no need to get 3 lack records. You can get top 20 records at a time and display it and on next page get another 20 records.


这篇关于如何提高gridview的性能,需要时间来加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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