(no title)
jelder
|
2 months ago
I thought this was common practice, generated columns for JSON performance. I've even used this (although it was in Postgres) to maintain foreign key constraints where the key is buried in a JSON column. What we were doing was slightly cursed but it worked perfectly.
craftkiller|2 months ago
jelder|2 months ago
morshu9001|2 months ago
ramon156|2 months ago
For example, if you want to store settings as JSON, you first have to parse it through e.g. Zod, hope that it isn't failing due to schema changes (or write migrations and hope that succeeds).
When a simple key/value row just works fine, and you can even do partial fetches / updates
jelder|2 months ago
mickeyp|2 months ago
unknown|2 months ago
[deleted]
morshu9001|2 months ago
sigwinch|2 months ago
jasonthorsness|2 months ago