简体   繁体   English

如何在不进行服务器端处理的情况下以数据表的形式加载数据

[英]How to load data in chunks in a datatable without server side processing

In IE 8, for datatable I am getting Stop running script error when data size is huge, I don't want to go with server side processing as it is expensive. 在IE 8中,对于数据表,当数据量很大时,我将停止运行脚本错误,我不想进行服务器端处理,因为这很昂贵。 I am able to get the data to client side. 我能够将数据发送到客户端。 error is coming when data is getting assigned to datatable. 将数据分配给数据表时出现错误。

You have two problems. 你有两个问题。 Client side data processing - that will probably cause even more problems in future. 客户端数据处理-将来可能会引起更多问题。

Even if you manage to load data in chunks, inserting dom elements in table is expensive operation and it's reason for "not responding". 即使您设法以块的形式加载数据,在表中插入dom元素也是一项昂贵的操作,这也是“不响应”的原因。 I had similar issue, tried loading in chunks, tried to found some solutions like https://github.com/stephenbez/tilava-table . 我遇到了类似的问题,尝试加载成块,试图找到一些解决方案,例如https://github.com/stephenbez/tilava-table At the end only good solution was pagination. 最后,唯一好的解决方案是分页。 Amount of data from db that can be seen at that moment like 10 by 10 lines. 那时可以看到的db中的数据量,例如10 x 10行。

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

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