perf(migration): 0045 streams json_each (no materialize / no temp blowup) #94
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces the MATERIALIZED-CTE scalar guard in 0045's backfill with an inline
CASEthat feedsjson_eachan empty object for non-object rows. Same scalar guard (no "cannot deconstruct a scalar"), but a single streaming pass — no 100 GB materialization to temp. Prod is at 0044 (the earlier 0045 rolled back), so this is the 0045 that runs on next deploy.(Today's local-disk fill was unrelated — accumulated container images in /var/lib/containerd, since pruned. Migration temp goes to NFS, which has room.)
CI green on dev
e6d5f67(run 856).🤖 Generated with Claude Code