巨大的文档库需要更多时间通过使用GetListItems()来获取所有项目

编程入门 行业动态 更新时间:2024-10-22 19:39:12
本文介绍了巨大的文档库需要更多时间通过使用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()来获取所有项目

本文发布于:2023-11-26 20:12:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635023.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   时间   项目   更多   GetListItems

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!