获取超过160万个项目的SharePoint文档库大小 [英] Get SharePoint document library size with over 16 lakh items

查看:89
本文介绍了获取超过160万个项目的SharePoint文档库大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们

我们需要获取文档库的大小(SP 2010),其中项目数超过160万.我们使用了简单的Powershell脚本,但是它抛出内存不足"错误.有什么可行的方法可以做到这一点.

We need to get the size of a document library (SP 2010) where the number of items are more than 16 lakh. We have used simple powershell scripts but it is throwing 'out of memory' error. Is there any feasible way to do this.

阿伦

推荐答案

我以前遇到过这样的问题,我们想获取大型文档库的实际大小,我们通过将整个大小分成多个块来克服了这个问题,这意味着我们创建了一个循环来计算来自file1到文件3000,然后重新执行 相同的脚本,但是我们更改了for循环值(i = 3001到i< = 9000),然后重新执行相同的脚本,但是我们更改了for循环值(i = 9001到i< = 1500)

i came a cross an issue like this before, we wanted to get the actual size of large document library, we overcame this issue by dividing the full size into chunks , means , we created a loop for counting the size for files from file1 to file 3000, then  re-execute the same script but we changed the for loop values ( i =3001 to i <=9000), then re-execute the same script but we changed the for loop values ( i =9001 to i <=1500)


Size = 0; 对于(
Size=0; For (


i = 0;


这篇关于获取超过160万个项目的SharePoint文档库大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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