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