Why it matters
Use JSON for evolving optional fields; keep hot filters as real columns.
Practical steps
- Choose storage for data json columns deliberately (SQLite vs Postgres vs KV); document why.
- Implement use JSON for evolving optional fields; keep hot filters as real columns with migrations that are additive and reversible where possible.
- Use transactions / idempotency keys so retries of data json columns do not double-write.
- Add a fixture DB and migration test covering data json columns.
- Document backup/restore touching tables used by data json columns.
Watch out for
- Copy-pasting outdated snippets for data json columns without re-reading current official docs.
- Shipping data json columns to production without a staging rehearsal and a documented rollback.