r/PostgreSQL • u/Upstairs_Director_16 • Jan 20 '24
Help Me! Doubt regarding PostgreSQL vs Mongodb
Why very often people say mongodb is not that better and we are being future proof to go with postgres? is there any condition that mongodb can't handle or such. I would love to get an answer that explains why actually why companies are shifting?
49
Upvotes
View all comments
Show parent comment
4
u/kenfar Jan 21 '24 edited Jan 23 '24
Learning to understand how to be effective with a document database doesn't require becoming a parrot for their marketing department. It means understanding strengths, weaknesses, and design patterns:
There are times & places where mongodb may make sense. But like mysql's leadership telling everyone twenty years ago that 90% of all developers don't need transactions, views, subselects, unions, etc - MongoDB spewed a lot of bad advice for people.
EDIT: typos