【发布时间】:2016-03-28 12:06:50
【问题描述】:
我有一个从 SQL Server 调用过程并返回数据表的函数
public static DataTable GetProducts(int parmCategory = -1){}
在我的asp页面中
ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", ReportsBLL.GetProducts()));
ReportViewer1.LocalReport.Refresh();
其中填写一次pageload()
这个过程大约需要 8 分钟从数据库中获取数据
我想在按钮按下时进行大量过滤以过滤来自GetProducts的数据
并且没有逻辑在每个过滤器中调用 procure 并联系数据库
那么,一旦我在pageload 中获取数据并在按钮按下过滤中处理它,我该如何保存它
【问题讨论】:
-
考虑分页您的结果集。服务器和客户端会更好。恕我直言,根据您在下面的评论,我不确定任何用户实际上需要/能够使用 “100000 行”。
标签: asp.net asp.net-mvc stored-procedures report rdlc