Referential Integrity - CI/CD用語集の定義
referential integrity(参照整合性)は、すべてのforeign keyが実際に存在する行を指していることを保証し、データベースが決してダングリング参照を持たないようにするものです。
なぜ重要か
データベースはforeign key constraintを通じてこれを自動的に強制します。そのため、大量削除やデータマイグレーションでは依存関係の順序を守るか、一時的にconstraintを遅延させる必要があります。
関連ガイド
Foreign Key - CI/CD Glossary DefinitionForeign Key: A foreign key is a column that references the primary key of another table, enforcing that the r…
Data Migration - CI/CD Glossary DefinitionData Migration: A data migration transforms or moves the rows themselves (rewriting values, splitting a colum…