News for hackers. Stuff that matters.
Re:We Can Do Better Than SQL by 013a on Tuesday August 11, 2020 @11:18AM (#24121204)
If you try to directly translate SQL to MongoDB, without changing your schemas or query, then yes, it's gonna look bad. That doesn't make for a good comparison, and I think you know that.
Re:We Can Do Better Than SQL by lostjohnny on Thursday August 13, 2020 @09:26AM (#24143079)
> That doesn't make for a good comparison, and I think you know that.

That query is not my invention, it comes directly from MongoDB documentation

If it looks bad, it means it is bad by design

https://docs.mongodb.com/manual/reference/operator/aggregati...