cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4j Disk space calculations

Question: how much ‘storage space’ the each node in the database taking in Neo4j?

I understand that Nodes occupy 15B of space, relationships occupy 31B of space and properties occupy 41B of space.
Storage depends on the nodes, relationships and number of properties and index occupies ~30% approximately.

Also understand the below link.. Understanding Neo4j’s data on disk - Knowledge Base

I have used the below query to find out the node and relationship.

CALL db.relationshipTypes() YIELD relationshipType as type
CALL apoc.cypher.run('MATCH ()-[:'+type+']->() RETURN count(*) as count',{}) YIELD value
RETURN type, value.count

CALL db.labels() YIELD label
CALL apoc.cypher.run('MATCH (:'+label+') RETURN count(*) as count',{}) YIELD value
RETURN label, value.count

How to find out count of Properties and index for Customer node to find out the disk space calculations.

Thanks in Advance

Rameshkumar.s

2 REPLIES 2

Question : I need to calculate the how much ‘storage space’ the each node in the database taking in Neo4j?.. i need a help on formula and query for count (node,rel,property and index) for the calculations

Maybe you can try out this tool - Hardware Sizing Calculator - Neo4j Graph Database Platform

Ignore the hardware recommendations, but look at the disk usage computation.