hi, one advantage of an extra hop that represents the "event" of one user following the other can be the fact that you can now link that "follow" node/event to a timeline graph node which allows for time based traversal .. and see what happened at some point in time.. who followed who .. when .. etc you could add time as attributes to relations but that would require a lot of attribute lookups
2014-04-18 8:47 GMT+02:00 Aseem Kishore <[email protected]>: > 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. > -- Groeten / Best Regards, Koen -- 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.
