i'am wondering how neo4j interpretes this request in background :
start n=node(500) match n-[:relation_type]-() return count(*)
Does Neo4j iterates on all the relation_type to have the count or does it maintains a counter of all elements for each "internals linked lists of typed relation"?
I wondering if i have to store the number of relations in a property each time i add one, or if i can retrieve it quickly without making neo4j iterates on all relations to have the current count.
(like in mysql : 'select count(*)' does not go threw all the rows, it knows the number of lines in a table, does neo4j knows the number of typed relation for a given node?)
Thank you for you help!