How to find the total size of Attachments per space
プラットフォームについて: Cloud と Data Center - この記事は クラウド プラットフォームとデータセンター プラットフォームの両方に等しく当てはまります。
Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
If you are trying to identify where the majority of your attachments are located by space, this can be helpful when trying to audit attachments to reduce the size of a space export or even a backup with attachments.
ソリューション
Run SQL query on the Confluence database:
select sum(cp.LONGVAL), s.spacename from spaces s INNER JOIN
content c ON c.spaceid = s.spaceid INNER JOIN contentproperties cp
ON cp.contentid = c.contentid where c.contenttype = 'ATTACHMENT' and
cp.propertyname = 'FILESIZE' GROUP BY s.spacename;The number returned is in bytes.
更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。