7 comments

[ 2.3 ms ] story [ 30.9 ms ] thread
You don't need the two follows pointers. That's an anti-pattern and solved by the right query syntax.
I 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.
That 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.

Couldn't load the Neo4j instance. Refreshed 3x. Latest Chrome + uBlock Origin + Privacy Badger.
disabled those extensions. ctrl+f5 refresh. still not loading.
Sorry, we hit EC2 instance limits. Now fixed. Try again :-)