Milad B
Milad B

Reputation: 105

neo4j database size is very large

I have a graph with the following information:

50,000 Nodes

3,500,000 Relations

All nodes have label "music" with the following properties:

Name: String (max 6 chars)

ID: Integer

Played: Boolean

and all Relationships are "T1" with no properties.

why database size is too large and 2.5 GiB while in "neo4j hardware sizing calculator" tells me "Estimated size on disk" is less than 100 MB!

why Relationships add too much to Database size? Every 1,000,000 Relationships add 1 GB to my database size!

It should be noted that I have not deleted any nodes or relationships.

Thanks in advance

Upvotes: 3

Views: 1966

Answers (1)

Milad B
Milad B

Reputation: 105

It is because of transaction log files. Transaction files in neo4j/databases folder are used to backup transactions and be restored in case of losing data. Maximum size of transaction files can be restricted in config file. It's recommended to stop neo4j before deleting log files.

Upvotes: 2

Related Questions