# How to organize/optimize Mattermost DB

**URL:** <https://forum.mattermost.com/t/how-to-organize-optimize-mattermost-db/8625>\
**Category:** Troubleshooting\
**Created:** [December 12, 2019, 2:40am UTC](https://forum.mattermost.com/t/how-to-organize-optimize-mattermost-db/8625 "2019-12-12T02:40:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babbles](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Babbles](https://forum.mattermost.com/u/Babbles)\
**Post date:** [December 12, 2019, 2:40am UTC](https://forum.mattermost.com/t/how-to-organize-optimize-mattermost-db/8625/1 "2019-12-12T02:40:33Z")

</div>

I’m still using Mattermost with only a few people. My Mattermost has 5 teams and the number of active channels is less than 20, even for all users. Despite this usage, I feel anomalies in the size of the database.  
The database size is 523MB, and the total table size is 3.7MiB. Is there a difference in size in general?

I want to optimize Mattermost DB. Is this normal and isn’t that necessary? Or is there no choice but to recreate it?

* * *

Mattermost Team 5.17.1, CentOS 7.7, MariaDB 10.2.29
