Example: users following other users.

Is there any advantage/disadvantage to directly connecting users with
relationships, vs. indirectly connecting them via nodes?

E.g.

(:User) -[:FOLLOWS]-> (:User)

vs.

(:User) <-[:SOURCE_USER]- (:Follow) -[:TARGET_USER]-> (:User)

The node obviously lends more flexibility (e.g. others can "like" it, it
can be placed in a linked list, etc.), but I'm wondering: are there any
downsides to it? E.g. if I commonly want to fetch a user's followers, is
the extra hop a significant performance drain? (I can test performance, but
I guess I'm wondering if there are other factors I can't even think of.)

Thanks!

Aseem

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to