3 ms·
Isn't PostgreSQL supporting JSON and queries over them? [1] [1] https://www.reddit.com/r/django/comments/14f68rz/postgresql_json_vs_mongodb/ https://www.reddit
by wslh 2y ago
Isn't PostgreSQL supporting JSON and queries over them? [1]
[1] https://www.reddit.com/r/django/comments/14f68rz/postgresql_json_vs_mongodb/ https://www.reddit.com/r/django/comments/14f68rz/postgresql_...
- PaulHoule 2y agoIt does. See https://www.postgresql.org/docs/current/datatype-json.html https://www.postgresql.org/docs/current/datatype-json.html I think it is ugly as hell to work w/ json documents in pgsql but most of the eng managers I’ve known think you couldn’t get fired for choosing pgsql.
- dgacmu 2y agoIt's ugly but having a field that's just a dictionary is really handy and not too ugly. We use a lot of them for things like "tags" (which can take freeform user- or ml- supplied image tags in key:value format). I adore it. (We tried mongo with one of our annotation systems and regretted it.) It's a very nice way to balance quick development (you don't need a schema change to try a feature for a while) with the benefits of a mostly schema-defined db.