HACKER Q&A
📣 tehlike

Why are you using MongoDB?


After postgres has implemented JSON/JSONB support, I feel like there is no need to use mongodb and the likes. Given all other benefits of postgres (acid, tooling etc) it feels overall it's better suited for cases where you'd use mongo for.

I heard stories where people would just start with mongo and eventually migrate to more mature tech as they go, but that need seem to have evaporated.

Thoughts?


  👤 scarface74 Accepted Answer ✓
I don’t currently use Mongo. But some reasons I would:

1. Because Postgres support for complex JSON queries are sub par compared to MongoDB

2. When I did use MongoDB it was with C#. The Mongo Linq driver is excellent. You write standard Linq queries and it gets translated to MongoQuery. You use standard C# POCO objects and the compiler ensures a consistent “schema”.


👤 searchableguy
They are probably using proprietary tools for mongo such as rockset: https://rockset.com/

Someone pointed that out to me when I answered a question dismissing mongo.


👤 three_legs
I've heard it's good for huge datasets that you want to shard, that mongo makes it easy to shard. The use case was per second location updates stored for at least 30 days

👤 dustingetz
Web scale