Not sure if this is what the above comment means by "atomic", but a shortcoming of Postgres' JSON support is that it will have to rewrite an entire JSON object every time a part of it gets updated, no matter how many keys the update really affected. E.g. if I update an integer in a 100MB JSON object, Postgres will write ~100MB (plus WAL, TOAST overhead, etc.), not just a few bytes. I imagine this can be a no-go for certain use cases.
bandrami|1 year ago
Temporary_31337|1 year ago
winrid|1 year ago
You can't do that with PG JSONB unless you lock the row for reading...
callalex|1 year ago
jeltz|1 year ago