# Quick tip: Save disk space on Neo4j Desktop Databases

**URL:** <https://community.neo4j.com/t/quick-tip-save-disk-space-on-neo4j-desktop-databases/16063>\
**Category:** Random: Challenges, Polls, Fun Banter\
**Created:** [March 20, 2020, 12:39pm UTC](https://community.neo4j.com/t/quick-tip-save-disk-space-on-neo4j-desktop-databases/16063 "2020-03-20T12:39:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_allen](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/david_allen/32/13090_2.png) [@david\_allen](https://community.neo4j.com/u/david_allen)\
**Post date:** [March 20, 2020, 12:39pm UTC](https://community.neo4j.com/t/quick-tip-save-disk-space-on-neo4j-desktop-databases/16063/1 "2020-03-20T12:39:09Z")

</div>

A trick I use with Neo4j Desktop databases to save local disk space is to configure Neo4j to store few or no transaction logs. All you have to do is add the following to your neo4j.conf file:

```auto
# Retention policy for transaction logs needed to perform recovery and backups.
dbms.tx_log.rotation.retention_policy=1 files
dbms.tx_log.rotation.size=56M
dbms.tx_log.rotation.retention_policy=keep_none

```

Normally what Neo4j does is to store all transaction logs. If you start out with a small database and then make a lot of changes to it, creating or deleting many nodes & edges, all of those cypher transactions get written into transaction log files. Sometimes, when I'm manipulating a database a lot, I end up in a situation where those log files are bigger than the database itself!

If you have a lot of databases this can add up. So I just add this configuration and tell the system to keep few or no transaction log files around.

This does come with a tradeoff. If your database crashes, the transaction logs are part of how the system can recover. And so if you don't keep them or they're not complete, you can have trouble recovering your database (which is why this setting is so conservative by default in Neo4j). As a result I wouldn't recommend this on any production system, and I generally use it with small testing databases that I could recreate if I needed, or where I have a backup anyway.

For more information on how and why this works, see:

> **[Transaction log - Operations Manual](https://neo4j.com/docs/operations-manual/current/configuration/transaction-logs/)**
>
> The transaction logs record all write operations in the database.
