r/ProgrammerHumor • • Oct 18 '24

Other mongoDbWasAMistake

Post image
13k Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/LeeroyJenkins11 Oct 22 '24

Session storage for users is a great usecase. Your auth gives you a user Id, look up the user fast in the nosql db, it's fast, basically a persisted map that lets dynamically add fields without restructuring the DB.