ATTACHMENTDATA table growth

I'm using confluence 5.6 on MYSQL, my queries ( insert/update) are slow due to ATTACHMENTDATA table ( since size is ~200G), Is there any recommendation to speed up transactions querying ATTACHMENTDATA table?

1 answer

1 vote

Take the attachments out of the database and put them on local storage instead.

You'll need to do that in the long run anyway - attachments in the database will not be supported soon.

Hi Nic, can you point out for me where it says that Atlassian are moving away from storing attachments in the database? That's a bad move from my perspective and it's going to make life so much harder to maintain reliable backups. Currently we have the ability to do point in time recovery using Oracle features. Moving the files to the file system's going to make a mess of that.

My understanding is that putting the attachments in the database was a kludge from the start, a way to try to get Confluence Clustering to work. It makes the databases far too large to be usefully backed up as soon as you get to a medium/large system and it's unweildy in terms of the things Confluence tries to do with attachments. Backups (incremental or full) of a file system are far better for static blobs of data such as attachments.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

915 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you