4 ms·
I have no experience in using the json column in postgres (well, sort of did, but it was just a json type, before json column was a real thing). For me, I try
by yeukhon 8y ago
I have no experience in using the json column in postgres (well, sort of did, but it was just a json type, before json column was a real thing).
For me, I try to do as much on the database side like sorting, which does require a good schema and table designs. This is why folks often criticize MongoDB. One of the reasons was the convincence of “schemaless”.
When Mongo was first introduced, I think a lot of developers, including me, saw Mongo as an excuse to move away from relational databases. So we began dumping all kinds of shit. Doing fancy stuff on Mongo side is not possible without a good design either.
What people probably did was just pulling data from multiple collections, and do filtering and “joins” on the server (client) side. I would find myself writing a for loop over doing a bunch of stuff. Yikes.
Of course there are other criticisms against MongoDB, but ultimately developers like myself did not (and probably still) have any decent clues how to use databases well. Learnig to use databases right is something I really want to be good at.
- philliphaydon 8y agoSounds to me like your documents were poorly designed.