Foreign Key Constraint - CI/CD用語集の定義
foreign key constraintは、あるカラムが別のテーブルのキーと一致することを要求し、テーブル間の参照を有効に保ちます。
foreign key constraintは、あるカラムの値が別のテーブルのキーと一致しなければならないという規則で、テーブル間の参照が有効なまま保たれることを保証します。
既存のテーブルにforeign keyを追加すると各行が検証されるため遅くなることがあります。マイグレーションではまずNOT VALIDとして追加し、その後別途検証することがよくあります。
関連ガイド
Database Index - CI/CD Glossary DefinitionDatabase Index: A database index is a data structure that speeds up lookups on one or more columns, at the co…
Expand-Contract Migration - CI/CD Glossary DefinitionExpand-Contract Migration: An expand-contract migration splits a breaking schema change into an additive expa…