DEV Community

Discussion on: Why I switched away from Google Firestore

Collapse
 
runjep profile image
Rune Jeppesen

NoSQL data modeling is typically driven by application-specific access patterns

I wrote "Should" based on my experience modeling in NoSQL.

With great power comes great responsibility.. with NoSQL you can have a post document containing the post, all comments and all the usernames.
If usernames are changed "too often" you should have references to users instead.

My guess is that the extra speed when loading a post from not reading all commenters user profiles is well worth the rare and expensive username change event