获取超过160万个项目的SharePoint文档库大小 [英] Get SharePoint document library size with over 16 lakh items
问题描述
人们
我们需要获取文档库的大小(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.
阿伦
推荐答案
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屋!