Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
magnush
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
magnush
13y ago
Probably the most important difference is that the old JSON types preserves whitespace and attribute ordering, whereas the new one doesn't. If you don't care about those, the old one is also slightly smaller on disk - but I would
2.
▲
by
magnush
13y ago
Another important part about gist is that GIN has much higher overhead for tables that are frequently updated.
3.
▲
by
magnush
13y ago
One important difference is that you don't need to extract the values to create an index. E.g. in Mongo I believe you still have to decide which keys to index. A GIN index on top of jsonb in PostgreSQL will make it possible to do an in
4.
▲
by
magnush
13y ago
PostgreSQL jsonb has the same problem in the actual document storage, with repeated keys. I believe it does better in the index, when you use the correct operator, but the table storage has the same type of overhead.
5.
▲
by
magnush
13y ago
No, jsonb will still update the whole value when you edit it. For now at least.