> For the complete documentation index, see [llms.txt](https://university.utopiasync.com/integration-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.utopiasync.com/integration-hub/use-cases/solution-discussions/utopiasync-maintenance.md).

# UtopiaSync Maintenance

If you have been using Utopia for a while you might have noticed that the data base sizes tend to grow! What is the cause?

For one, the more you use it the greater the data being held, but secondly one of the features of Utopia is the extensive logging it create. This logging has a large impact on the space used. Take a look at our [logging section](/integration-hub/product-guide/logging.md) which describes the logs and where you can find logging.

Utopia has a built in maintenance process which will keep the mongoDB under control, with separate maintenance functions for documents and logs, for example you can keep documents for 3 months but logs for 1 week. These maintenance features can also be excluded from data by not selecting the maintenance toggle on the collections in the Utopia UI.&#x20;

In order to allow this process to happen you have to connect an S3 database to the cluster, the configs can be found in microservices deployment and the secrets area of your cluster.&#x20;

The MySQL tables (SQL) will have to be maintained externally. Other external maintenance recommendations include Compacting and reindexing for MongoDB collections. Setting up the retention time in S3 buckets will help maintain those.<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://university.utopiasync.com/integration-hub/use-cases/solution-discussions/utopiasync-maintenance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
