巨大的文档库需要更多时间通过使用GetListItems()来获取所有项目 [英] Huge document Library taking more time to fetch all items by using GetListItems()

查看:48
本文介绍了巨大的文档库需要更多时间通过使用GetListItems()来获取所有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含大约35000个项目的文档库.我正在使用"GetListItems()"; List.asmx的方法.我可以检索所有项目但是执行大约需要8分钟.我怎样才能更快地获得所有物品? 我也在客户端对象模型中尝试过同样的方法,在客户端对象模型中也遇到了相同的性能问题.请为我的问题提供解决方案.

I have document library which contains around 35000 of items. I am using "GetListItems()" method of List.asmx. I can retrieve all the items  but it is taking around 8 minutes for the execution. How could i get the all the items in faster way? I have tried the same in Client Object Model also, I am having the same performance issue in client object model. Please provide me the solution for my issues.

ndQuery.InnerXml =< WHERE>< GT>< FIELDREF Name ='\'ID \'' />< VALUE Type ='\'Counter \'''> 0</VALUE></GT></WHERE>" ;;;
ndQueryOptions.InnerXml =< ViewAttributes Scope ='RecursiveAll'IncludeRootFolder ='True'/>';;;
ndViewFields.InnerXml =";

ndQuery.InnerXml = "<WHERE><GT><FIELDREF Name='\"ID\"' /><VALUE Type='\"Counter\"'>0</VALUE></GT></WHERE>";
ndQueryOptions.InnerXml = "<ViewAttributes Scope='RecursiveAll' IncludeRootFolder='True' />";
ndViewFields.InnerXml = "";

XmlNode ndListItems = objLists.GetListItems(strParamDocLibName,null,ndQuery,ndViewFields,"10000000",ndQueryOptions,null);

XmlNode ndListItems = objLists.GetListItems(strParamDocLibName, null, ndQuery, ndViewFields, "10000000", ndQueryOptions, null);

感谢&问候

Poomani Sankaran

Poomani Sankaran

推荐答案

与编程相比,这更多是UI问题.通常,您要提供用户可能用来完成手头任务的最少数量的记录.从用户的角度来看,35,000条记录是不可管理的.首先,我建议 用户可能属于哪个组的多个视图.祝你好运!
This is more of a UI issue than a programming one. As a general rule, you present the least amount of records that a User could possibly use to accomplish the task at hand. 35,000 records is not manageable from a User point of view. To start, I would suggest multiple views targeted by which group a User may belong to. Good luck!


这篇关于巨大的文档库需要更多时间通过使用GetListItems()来获取所有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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