Backfill - CI/CD用語集の定義
backfillは、新しく追加された列やテーブルを既存データから導出した値で埋めるもので、通常はスキーマ変更後にバッチで行い、新しいフィールドが古い行でも使えるようにします。
expand-contractにおいて
backfillはexpand-contractマイグレーションの中間フェーズです。列を追加し、古い行をチャンク単位でbackfillし、すべての行に値が入ったらconstraintを適用します。バッチ化により各書き込みを小さく保ち、長いロックを避けられます。
関連ガイド
Expand-Contract Migration - CI/CD Glossary DefinitionExpand-Contract Migration: The expand-contract (parallel change) pattern splits a breaking schema change into…
Data Migration - CI/CD Glossary DefinitionData Migration: A data migration transforms or moves the rows themselves (rewriting values, splitting a colum…
Zero-Downtime Migration - CI/CD Glossary DefinitionZero-Downtime Migration: A zero-downtime migration changes the schema without taking the application offline,…