如何确定 SharePoint 列表的磁盘大小?
我有一个包含大约 5500 个项目的列表,我想了解磁盘上的大小。 我有什么办法可以做到这一点吗? 如有必要,我不介意在数据库中运行查询。
I have a list with roughly 5500 items, and I would like to find out the size on disk. Is there some way I can do this? I don't mind running a query in the database, if necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
站点设置-> 存储指标
您可以查看每个对象的消耗量,单击列表即可查看每个单独的列表
您不必设置站点配额
Sharepoint 2013
Site Settings -> Storage Metrics
You can see how much each object is consuming, click on Lists to see each individual list
You don't have to set a site quota
Sharepoint 2013
这取自 SharePoint 2013:
它返回所有网站的所有列表,对项目和附加文档的大小进行求和。 不包括文档库,请使用:
This is taken from SharePoint 2013:
It returns all lists of all webs, summing the size of the items and the attached documents. Document libraries are not included, use this:
正如侯赛因·纳赛尔在该帖子中所说。 这仍然与 SharePoint 2016 和 Sharepoint 2019 相关(本地检查)
作为网站集管理员,我转到网站设置 -> 存储指标和宾果...
如果您有多个列表,则单击“列表”超链接,它将为您提供每个列表的详细信息。
As Hussein Nasser said in this thread. This still relevant for SharePoint 2016 and Sharepoint 2019 (on-premise checked)
Being site collection admin, I went to Site Settings -> Storage Metrics and bingo...
If you have multiple lists, then click on Lists hyperlink, it will give you details info for each list.
导航到 http://[myapplication]/[mySitecollection]/_layouts/storman.aspx
这将列出网站集的存储空间分配。
Navigate to http://[myapplication]/[mySitecollection]/_layouts/storman.aspx
This will list the Storage Space Allocation for the site collection.
如果您启用站点配额,站点设置下会出现一个名为存储空间分配的选项。 当您在管理中心设置配额时,页面会告诉您当前使用的存储空间是多少,以便您可以在此之前有所了解。 进入存储空间分配报告后,您可以看到库的总大小。
遗憾的是,如果不启用网站配额,您将无法获取此报告。
If you enable a site quota, an option under site settings appears called Storage Space Allocation. When you go to set a quota in the Central Administration, the page will tell you what the current storage used is so you can have an idea before there. Once you get to the Storage Space Allocation report, you can see the total size of a library.
Unfortunately, you can't get this report without turning on a site quota.
我无法让蒂姆·多布林斯基的建议发挥作用。 这个 T-SQL 查询并没有处理所有问题,但给出了一个非常好的想法。 将其弹出到 Excel 中,然后添加“大小(以 MB 为单位)”列并添加公式。
I could not get Tim Dobrinski's suggestion to work. This T-SQL query does not deal with everything, but gives a very good idea. Pop it into Excel, then add a column for "Size in MB" and add in a formula.
如果您将相关列表作为模板保存到文件系统中,这应该能让您大致了解其大小。 如果您需要定期执行此操作,则此方法不太有用。
If you save the list in question as a template to the file system, this should give you a rough idea of its size. If you need to do this on a periodic basis this approach is not as useful.