我有一个包含大约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()来获取所有项目
发布评论