News for hackers. Stuff that matters.
Re:The Great Migration from MongoDB to PostgreSQL by thih9 on Friday March 29, 2024 @05:26AM (#39862087)
To be fair, Mongodb’s pr team did their best to present it as the solution to all problems.

> In 2012, 10gen’s VP of Corporate Strategy Matt Asay argued “there will remain a relatively small sphere of applications unsuitable for MongoDB … the majority of application software that developers write will be in use cases that are better fits for MongoDB and other NoSQL technology … Those functions that really help a company innovate and grow revenue [will be NoSQL].” He would note that we were living in the post-transactional future.

https://news.ycombinator.com/item?id=15124306

Re:The Great Migration from MongoDB to PostgreSQL by onetimeuse92304 on Friday March 29, 2024 @06:26AM (#39862434)
To be fair, almost all product PR teams do the same. I just ignore most of what they say in favour of my own opinion that I try to build based on reading actual technical documentation, experimenting with the product, etc.

Anybody who makes tech decisions based solely on what PR teams say is naive and incompetent at best.

Re:The Great Migration from MongoDB to PostgreSQL by benterix on Friday March 29, 2024 @09:33AM (#39863939)
> To be fair, almost all product PR teams do the same.

As it is their "duty" to twist the truth in this way, it is our role as the users of these technologies to present things as they are.

Re:The Great Migration from MongoDB to PostgreSQL by thih9 on Friday March 29, 2024 @10:42AM (#39864672)
> To be fair, almost all product PR teams do the same.

No, mongodb’s PR approach and results were largely uncommon at the time. They didn’t advertise directly but instead targeted and amplified dev communities - as detailed in the article linked earlier.

The result was that people not associated with mongodb talked about mongodb at various dev conferences and in blog posts. People didn’t want to listen to PR teams then too, but they followed their peers.

Re:The Great Migration from MongoDB to PostgreSQL by onetimeuse92304 on Friday March 29, 2024 @10:59AM (#39864871)
Again, I will stick to saying that if you use technology you have no experience with, the problems resulting from it are on you.

Testing out technology on important projects is reckless and is a risk a lot of people take but push away any responsibility for.

As a professional, before I suggest to use a technology at a project, at first at the very minimum I spend some time with it to learn the ins and outs. Every technology has cons. Just because you don't know them does not absolve you from responsibility for them.

The reality is that most applications are boringly similar once you define the problem in simple words. There is very rarely a need to use new technology. It is my experience that it is usually better to use technology that is not necessarily cutting edge but one that you know well and that you can easily hire people who know it well.

Because no technology is perfect, but it is much better to know the cons ahead of time and know you will have people who will know the problems and who can find reasonable solutions for.

I am personally sick and tired of people who first advocate for new technology to be added to the project, touting its supposed benefits, not knowing the cons, then don't want to take responsibility once we actually find the dead bodies.

Re:The Great Migration from MongoDB to PostgreSQL by rokkitmensch on Friday March 29, 2024 @11:22AM (#39865165)
The funny thing is that they chose Mongo precisely because they were familiar with it...
Re:The Great Migration from MongoDB to PostgreSQL by zzzeek on Friday March 29, 2024 @10:50AM (#39864756)
MongoDB came into the community like a ton of bricks, taking over conferences, flooding the zone with mugs and t shirts, and for a time there, you couldn't view the front page of hacker news without at least two MongoDB posts. The death of SQL, now known to be an inferior relic of the past, was a regular topic of discussion. There's a reason why the "Web Scale" meme is so famous, because that's what actually happened for awhile there. SQL was an inferior, leaky abstraction, and ACID was not "web scale". it became all about the CAP theorem (which I hardly ever see anyone writing about these days).

only a year or two later, when teams that went all in on MongoDB at the behest of MongoDB's marketing department started realizing they'd been sold a bill of goods, did the slow and arduous march back to what continued to be the best generalized solution for 95% of data problems, the ACID compliant relational database, begin to occur. given that, this blog post seems really behind the times.

Re:The Great Migration from MongoDB to PostgreSQL by swasheck on Friday March 29, 2024 @11:40AM (#39865402)
mongo was absolutely one of the most egregious (daresay dishonest?) purveyors of such myth. it was quite off-putting for me and my team.
Re:The Great Migration from MongoDB to PostgreSQL by taffer on Friday March 29, 2024 @12:09PM (#39865723)
As a counterexample, Azure Cosmos or Amazon DynamoDb are marketed as specific solutions for specific problems. Other RDBMS like SqlServer or Postgres are marketed as general purpose solutions because they are in fact general purpose solutions. Mongodb, on the other hand, is a specialized "document database" marketed as a replacement for relational databases.
Re:The Great Migration from MongoDB to PostgreSQL by gwbas1c on Friday March 29, 2024 @10:58AM (#39864848)
They were doing that back in 2010. I went to a few conferences where they promoted MongoDB as an all-purpose database that was the "next thing" compared to SQL.

Once everyone realized its shortcomings as a general-purpose database, there was a gradual "oh shit this isn't working" migration back to SQL-based databases.

I think the big problem is that the MongoDB programming model and APIs are very nice; we really need a database that is still relational "under the hood" but has an API that's more like MongoDB.

Re:The Great Migration from MongoDB to PostgreSQL by bashinator on Friday March 29, 2024 @12:01PM (#39865632)
I believe one of the job interview problems at Mongo for software engineers, was to design a relational layer on top of the document store.
Re:The Great Migration from MongoDB to PostgreSQL by liquidgecka on Friday March 29, 2024 @12:18PM (#39865825)
In 2010-2011 time frame the mongo team sponsored an effort inside of Twitter to replace MySQL with mongo. There was a group of us that worked to migrate the tweet store to Cassandra that were able to talk with leadership and get that initiative killed. Turns out migrating HIGHLY structured data into mongo was never a good idea, especially at that scale.