如何迅速找出SharePoint中的List Item数量超过2000的Large List?

根据白皮书<<White paper: Working with large lists in Office SharePoint Server 2007>>, List Item数量大于2000的列表在UI上展现的时候, 会有性能差的问题.

 

那么如何找出一个SharePoint的Content DB中这样的列表呢?

 

运行下面的查询语句就可以了.

SELECT ItemChildCount + FolderChildCount as Items, 
        DirName +'/' + LeafName as RelativePath 
FROM alldocs WITH (NOLOCK) 
WHERE ItemChildCount + FolderChildCount >1500 
ORDER BY Items DESC 

 

这个查询可以返回文件夹和列表项总数超过1500的列表.

posted on 2010-09-09 17:30  中道学友  阅读(441)  评论(0)    收藏  举报

导航

技术追求准确,态度积极向上