Primary Key - CI/CD用語集の定義
primary keyは、テーブル内の各行を一意に識別する列(または列の組み合わせ)です。暗黙的に一意で、非NULLかつインデックス付きです。
なぜ重要か
他のテーブルはforeign keyを通じてprimary keyで行を参照するため、その選択(オートインクリメントの整数か、UUIDか)はjoinの性能や、シャード間でデータをどれだけ容易にマージできるかに影響します。
関連ガイド
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…
Unique Constraint - CI/CD Glossary DefinitionUnique Constraint: A unique constraint guarantees that no two rows share the same value in a column or set of…
Database Index - CI/CD Glossary DefinitionDatabase Index: A database index is an auxiliary data structure (usually a B-tree) that lets the database fin…