News for hackers. Stuff that matters.
Re:Jepsen Disputes MongoDB's Data Consistency Claims by hartator on Saturday May 23, 2020 @04:15PM (#23285994)
> Why not use PostgreSQL instead? It supports a JSON document data type natively.

Yes, that's the thing, it's just a field type. It's not really that different than dumping your JSON in a TEXT column. MongoDB is fun because it's truly JSON - BSON - so you don't have to run migrations, you can store complex documents, and have a more object oriented way of storing your data than SQL.

Re:Jepsen Disputes MongoDB's Data Consistency Claims by throwanem on Saturday May 23, 2020 @04:24PM (#23286068)
You should probably read the Postgres documentation [1] before you make erroneous claims like this. Postgres JSON fields can be destructured, queried, and aggregated sufficiently to cover at least the 90% cases in MongoDB usage.

I'll grant that Postgres probably isn't as much fun as Mongo, what with all its tiresome insistence on consistency and reliability. I would, however, argue that quantity of available fun isn't really a figure of merit here.

[1] https://www.postgresql.org/docs/10/functions-json.html

Re:Jepsen Disputes MongoDB's Data Consistency Claims by bjt on Saturday May 23, 2020 @05:07PM (#23286449)
> It's not really that different than dumping your JSON in a TEXT column

That was true of the initial "JSON" type support.

It is very much not true of the "JSONB" type, which was added in 2014 as part of Postgres 9.4. JSONB uses a binary serialization that supports efficiently selecting into JSON documents, putting regular BTREE indexes on specific fields inside the documents, or even putting Elasticsearch-like inverted indexes on complete JSON documents.

Re:Jepsen Disputes MongoDB's Data Consistency Claims by IggleSniggle on Saturday May 23, 2020 @05:36PM (#23286722)
This is so not true that it hurts. Postgres jsonb is highly queryable.
Re:Jepsen Disputes MongoDB's Data Consistency Claims by sergiotapia on Saturday May 23, 2020 @04:49PM (#23286291)
It's completely different than dumping json into a text field...

Read the docs, you can do a lot of fancy JSON stuff in plain ol' Postgres. It's really powerful and guarantees your data.