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.
[ Parent
| on HN ]
> 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)
Good Lord the level of incompetence is terrifying
Most people dontgain competence until they learn from their mistakes
Related
>Good programmers worry about data structures and their relationships
If we don’t think about it now we’ll really have to think about it way more later.
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.