4 ms·
You don't need the two follows pointers. That's an anti-pattern and solved by the right query syntax.
by edoceo 11y ago
You don't need the two follows pointers. That's an anti-pattern and solved by the right query syntax.
- ryguyrg 11y agoI agree if you're modeling a symmetric friendship network like Facebook. However, Twitter following can be asymmetric. I could store the directionality on a relationship property, but that gets even uglier.
- nicolewhite 11y agoThat only applies when the relationship implies bi-directionality. On Twitter, me following you doesn't necessarily mean that you follow me. Thus both directions are persisted in the model. If this were on Facebook, however, you would be right. (:User)-[:FRIENDS_WITH]-(:User) would only need to be persisted once and with an arbitrary direction.