Live data from Hacker News

MongoDB takes a swing at PostgreSQL after claiming wins against rival

theregister.com

51–55 of 55 posts

Re: MongoDB takes a swing at PostgreSQL after claiming wins against rival

#51

I have deployed Postgres and MongoDB at petabyte scale. I am happy to answer questions from others who are intellectually curious about differences between the two that would matter to users who have to spend serious amounts of money on their databases.

vanilla, single-node postgres ?

Re: MongoDB takes a swing at PostgreSQL after claiming wins against rival

#52
post #51

I have deployed Postgres and MongoDB at petabyte scale. I am happy to answer questions from others who are intellectually curious about differences between the two that would matter to users who have to spend serious amounts of money on their databases.

vanilla, single-node postgres ?

No, it's frankly not possible to deploy Postgres at scale without a third party (or hand-rolled) HA/scaling solution. I worked on an application that hand-rolled one after considering several products.

Re: MongoDB takes a swing at PostgreSQL after claiming wins against rival

#53
MongoDB gets a lot of hate and created a bad reputation for itself by way of a very successful marketing campaign where they convinced a whole lot of companies to replace whatever RDS they were using with MongoDB some years ago. This caused a lot of RDS-driven applications to uh, experience a lot of development issues.

It basically never makes sense to drive an application with MongoDB, which is why a lot of folks think it's strictly worse.

A perfect MongoDB (or any document db, really) use case has zero relationships. This is accomplished by duplicating data across documents where you would normally use a foreign key in an RDS. Naturally, this is anti-pattern for RDS-minded folks and everything you'd want to do with Mongo stems from this mode of thought (preprocessing/data replication instead of lookups).

Personally, I've had great success with Mongo and appreciate it for it's incredible depth in text searching via Atlas Search. Surprisingly, the web interface for Atlas in general is actually quite good and it's the only one I can bear to use; I usually can't stand them.

Re: MongoDB takes a swing at PostgreSQL after claiming wins against rival

#54

I had such a bad experience with Mongo DB back in 2012-2013 that I don't think I'll ever use it again, or even really consider it. But maybe it's changed and gotten better since then? Anyway. I just use Postgres.

If you like the document db idea there are a lot of choices, especially https://arangodb.com/ which I think gets little attention because people who use it see it as a secret weapon. Too bad about the license though. Also https://couchdb.apache.org/ and https://developer.marklogic.com/

With regard to ArangoDB, the Community Edition is for personal or internal business projects (non-prod, up to 100GB). There is also a managed version and self-manage Enterprise version that companies use with their apps.

Comparison - https://arangodb.com/subscriptions/

Re: MongoDB takes a swing at PostgreSQL after claiming wins against rival

#55
post #38

Earlier quoted context omitted.

I suspect a good amount of the hype around NoSQL was driven by frontend developers transitioning into backend work via Node, and Mongo being relatively simple to get started on compared to relational databases. And that culture seems to have stuck. To this day, many popular backend js frameworks either completely ignore relational data storage or slap some bare bones interface over it.

I believe that this is also why we're starting to see a surge in people wanting to run SQLite as their backend database. It's similarly simple to start out with, and also similarly flimsy when dealing with actual data integrity. Very limited types, limited isolation options, ref integrity disabled by default (Mongo DB also disables things by default that hurts their benchmarks). But hey, SQLite is better than Mongo D…

Good point! SQLite is simple and great for small projects, but its limits with data integrity and concurrency show at scale. Still, it's a more predictable choice than MongoDB, which has its own quirks. Definitely progress!
Post reply on HN