Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

sql query to find attachment size after migrate to file system?

Michael Regelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2015

Hello,

I have migrated attachment from database to file system on Confluence 5.8.x.

 

Now I need a query to sum the size (Gb) of all attachment from current version ?

Can I query this now they are on file system ?

 

Thanks for any help.

Michael

2 answers

0 votes
Guilherme V.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2015

I tried this query:

select sum(filesize) from attachments

But it will take everything from the attachments table such as the other attachments versions. I'm also not sure how you could convert it to GB sad.

 

Also: In Confluence 5.8 the attachments are stored in the content table, if I'm not wrong...

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2015

By default, Confluence stores attachments in the attachments directory within the configured Confluence home folder. You can log in to a server and check the size of this directory.

-Mirek

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events