2 ms·
For us, a "proper" column is usually something we want to index against. Things like timestamps, user ids, etc. Anything that would be useful for top-level mana
by bob1029 5y ago
For us, a "proper" column is usually something we want to index against. Things like timestamps, user ids, etc. Anything that would be useful for top-level management of whatever has the json tacked onto it.
- conradev 5y agoYou could pull those out and index them using generated columns, though. That can make things a lot easier on the application side, where the code just needs to insert the JSON blob
- jrochkind1 5y agoYou don't even have to "pull those out and index them using generated columns" to index with postgres jsonb, although it's a bit more confusing to figure out the proper index and make sure your queries hit it, jsonb data is indexable on it's own.