4 ms·
Second that, i’ve built multiple services with MongoDB just to port them now (and probably for some time) to postgres.
by shreddit 2y ago
Second that, i’ve built multiple services with MongoDB just to port them now (and probably for some time) to postgres.
- markus_zhang 2y agoJust curious why? I have never worked with NoSQL but I always envy the people who does that because they are a bit further away from business than us data warehouse modellers. They are usually our upstream, paid more and less hassle from business.
- irisgrunn 2y agoThat only makes sense if you wanted to store relational data in a NoSQL database (and that's not what Mongo is meant to do)
- threeseed 2y agoAnd if your business is okay with all of your data living in a single instance. Because PostgreSQL is unacceptably poor at HA/replication compared to MongoDB.
- spacebanana7 2y agoIs that really true these days? Setting up Postgres read replicas with automatic fail over across multiple machines is pretty trivial in the cloud with services like RDS, spanner etc. And although doing it in your own datacenter is still a big job it's far from impossible.
- sgarland 2y agoHuh? Replicas are easy, and hot standby nodes aren’t that hard either. There are also various active-active solutions if you need that.
- redwood 2y agoI'm genuinely curious what you mean when you say "relational data"? I've seen this phrase thrown around and I think it's something of a misconception. The way you use the term implies that you're referring to the type of data, but the term generally refers to the method used for storing the data. This distinction is important because it leads to a circular reasoning dynamic: many of us are accustomed to storing the data in tabular form using a relational data model. But choosing to use that particular model to represent objects or entities or ideas does not make those objects or entities or ideas fundamentally relational data.
- throwaway290 2y agoPostgres and NoSQL are not exclusive, Postgres works pretty well as NoSQL (some would say better than Mongo).
- redwood 2y agoThis is an extremely misleading statement. You have to jump through hoops to do expressive queries, with a limited set of index primitives, a query optimizer that doesn't take advantage of anything that resembles nested JSONB, and syntax and storage overhead that will leave you thinking there's nothing good about storing data with rich JSONic structure begin with.. worst of all worlds
- throwaway290 2y agoI used it for that and it is not like a hell you describe.
- redwood 2y agoWhat kind of scale are we talking to out of curiosity?
- throwaway290 2y agoPretty small.