by nstart · 8y ago · 0 comments
Still, a JSON column will arguably be faster than a pure KV table since you can more efficiently query it, especially any non-JSON columns.
So values in JSONB columns can be indexed nicely, but the statistics can be much worse than for non-JSONB columns, which can lead the query planner astray.
"Relational databases don't scale"
Well they worked fine for decades before Mongo's marketing claimed so.
Normalize it properly. If this is not possible, ensure that both the userid and the property are indexed