News for hackers. Stuff that matters.
Re:Just use Postgres by vvillena on Saturday August 17, 2024 @07:04AM (#41273549)
Fully agree. At that level, the justification for using MongoDB usually boils down to not wanting to deal with table schemas or SQL. In both cases, there are better alternatives.
Re:Just use Postgres by mrweasel on Saturday August 17, 2024 @08:06AM (#41273896)
> not wanting to deal with table schemas or SQL.

In most cases you're not even removing the concept of the schemas, your just moving them from your database to your application. Which in a sense is worse, especially if multiple applications needs to access the same database.

As for SQL, I have yet to see something solve the problem for querying a database in a simpler manor.

Re:Just use Postgres by formerly_proven on Saturday August 17, 2024 @07:30AM (#41273693)
I’ve heard stuff like this from supposedly senior people - if we use mongo we can just store anything, we don’t need to think about a schema (also you can only store short strings in an SQL database)
Re:Just use Postgres by Vosporos on Saturday August 17, 2024 @07:35AM (#41273719)
Good Lord the level of incompetence is terrifying
Re:Just use Postgres by stogot on Saturday August 17, 2024 @10:57AM (#41275012)
Most people dontgain competence until they learn from their mistakes
Re:Just use Postgres by croes on Saturday August 17, 2024 @08:22AM (#41273993)
Related

>Good programmers worry about data structures and their relationships

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

Re:Just use Postgres by j45 on Saturday August 17, 2024 @10:19AM (#41274780)
If we don’t think about it now we’ll really have to think about it way more later.
Re:Just use Postgres by markoman on Sunday August 18, 2024 @04:58AM (#41281103)
Hence, the birth of the dreaded 'technical debt'.
Re:Just use Postgres by hyper_cube on Saturday August 17, 2024 @12:42PM (#41275767)
But typically, if you do spend some time to think about schema, and relationships, you only have to spend a small amount of time, and map that into the appropriate place, and then usually you don't have to mess with it again. It's worth the investment.