简体   繁体   English

具有大型数据集的 Infragistics WebExcelExporter.Export(webdatagrid, worksheet) 的性能问题

[英]Performance issues with Infragistics WebExcelExporter.Export(webdatagrid, worksheet) with large data sets

I am using Infragistics WebExcelExporter.Export(webdatagrid, worksheet) to export large datatable having 70000+ rows and 25 columns.我正在使用Infragistics WebExcelExporter.Export(webdatagrid, worksheet)导出具有 70000+ 行和 25 列的大型数据表。 The export fails due to timeouts.由于超时,导出失败。 Is there any other way to export with Infragistics WebExcelExporter.有没有其他方法可以使用 Infragistics WebExcelExporter 导出。

Works without any issues if the rows are below 50000.如果行数低于 50000,则可以正常工作。

This is definetely a big amout of data.这绝对是大量的数据。 Server is stuck in a loop or the server is still processing the request.服务器陷入循环或服务器仍在处理请求。 My suggestion is to increase the time which is needed to process your data (from the long running methods) and to see if the error is caused by insufficient time or infinitive loop.我的建议是增加处理数据所需的时间(来自长时间运行的方法),并查看错误是由时间不足还是不定式循环引起的。

The default callback manager timeout value is 20 seconds.默认回调管理器超时值为 20 秒。 You could use the protected _callbackManager object which is referenced by each Aikido control.您可以使用每个合气道控件引用的受保护的 _callbackManager object。 To increase the WebDataGrid timeout period you can do the following:要增加 WebDataGrid 超时期限,您可以执行以下操作:

Code snippet:代码片段:

<script type="text/javascript">
        function Init(sender, eventArgs) {
            sender._callbackManager.setTimeout(60000);
        }
 </script>


 ...
<ig:WebDataGrid ID="WebDataGrid1" runat="server" DataSourceID="EmployeesDataSource" 
    Width="100%" DataKeyFields="OrderID">
    <ClientEvents Initialize="Init" />

Have you considered exporting this amout of data on different portions?您是否考虑过将这些数据导出到不同的部分?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM