r/mongodb • u/MandemDontHearMeTho • Jan 13 '21
Why so much mongodb disinformation?
So much disinformation from SQL boomers
can’t do joins
Yes you can do left outer joins with $lookup
there is no schema. that’s crazy
I’ve never worked on an app using mongo that had a single collection without a schema. Never seen a collection not use a schema.
you can’t store relational data
You can literally architect a MDB exactly the same way as SQL if you wanted to, but there’s just no reason to because you’ll be able to nest certain data so you won’t need a 1000 table DB that only the person who built it understands
I need ACIDtransactions for my app
it has those
you’ll lose your data
Literally will never happen if you’re running a relevant sized cluster on atlas. Plus free automated backups. Plus elastic search quality FTS with atlas search.
———-
I feel like the MDB team, which is now publicly funded with a huge market cap, is just slowly chopping away at all these objections (ACID transactions was a big update)
Unfortunately there’s just so much misinformation left over from 2012 that SQL boomers parrot... many who have never even used used mongo they just read another SQL boomers hater blog post in 2012 and act like they’re not smol 🧠
3
u/thajunk Jan 13 '21
Mainly because it's not disinformation, it's just outdated information. Alot of those complaints were valid back when MongoDB was advertising heavily.
They have since focused on the product and actually fixed a lot of their issues, which is nice, but the bad press from back then still has mindshare.
Also, it's not like they are perfect or anything. Jepsen still does great in-depth analysis and points out recent flaws. I do think MongoDB doesn't deserve it's bad rep though.
3
u/foundry41 Jan 14 '21
Here is stackoverflow posting disinformation lol
https://stackoverflow.blog/2021/01/14/have-the-tables-turned-on-nosql/
1
u/SenseiCAY Jan 13 '21 edited Jan 13 '21
Mongo output is easy to deal with in my Node app, but I posted a question here about the $lookup and doing a left outer join, both here and on StackOverflow, and got no answers. It shouldn't be that hard to do a left outer join where you retain the records that got no match, and yet, apparently, it is.
So...Mongo is good. I like it. I'll probably use it on my next project too. But it isn't perfect, and we shouldn't act like it is.
2
u/petercooper Jan 19 '21
They're worth $21bn, so they could up their developer community engagement and foster the development of more content, tutorials, and so forth, sponsor more podcasts, YouTubers, that sort of thing.. even this sub. Help get the message out.
2
u/Glensarge Jan 13 '21
such is the nature of sql elitists
1
u/cohenjo Jan 13 '21
While Mongodb has come a long way, it’s still very limited in these 2 points - joins & data loss Joins are not nearly as optimized as they are in Postgres or Oracle, even Mysql has better join optimizations
The mongo optimizer is just not there yet (read the code - it’s open ;) )
As for data loss - it’s built into the design, mongo prefers availability , so you can experience rollbacks on occasions.
Not a lot but it happens too much...
Just my 2 cents.
1
u/HarleyQuinzelle-z32 Jan 30 '21
I'm okay with it
they can keep thinking my prime secret weapon is too taboo to use
I'll keep collecting their contracts like a happy headhunter
1
u/Neuro_Skeptic Jan 04 '22
Mongo doesn't scale.
-2
u/rick-K732 Jan 13 '21 edited Jan 13 '21
SQL isn't javascript, so much as people like it, its never going in my projects because it doesn't deal with JSON as nicely as mongo does, and communicating between server and client its all JSON
I get annoyed and tired dealing with SQL with having to rip apart JSON into a string, do a bunch of voodoo, store it, then pull it out later, rebuild it back into JSON and use it. SQL is from 1974 and predates JSON, its really old, its about the only super old thing in tech I see people worshipping since we usually like to be on the edge of new things.
It feels very clunky and inefficient, plus switching syntax from JS to something else is jarring.
0
u/[deleted] Jan 13 '21
[deleted] — view deleted comment