Order the steps
Order a zero-downtime rename of users.name to users.full_name.
- Backfill
full_namein small batches - Add nullable column
full_name - Deploy code that writes both columns
- Drop
namein a later release - Deploy code that reads
full_nameonly
Choose an answer, then open Show answer below to check it.
Show answer
Answer: B C A E D
- Add nullable column
full_nameMetadata-only; old code ignores it. - Deploy code that writes both columns New rows get both values during the rollout.
- Backfill
full_namein small batches Copies old rows without long locks. - Deploy code that reads
full_nameonly Old column is now unused. - Drop
namein a later release Contract once nothing depends on it.