クラスタ化インデックスとは?
クラスタ化インデックスは、テーブルの行がディスク上に物理的に格納される順序を定義し、実際のデータをインデックスキーでソートします。データそのものがインデックスであるため、1つのテーブルには1つのクラスタ化インデックスしか持てません。一致する行が隣接して並ぶため、キーに対する範囲クエリやルックアップは高速です。
なぜ重要か
クラスタキーの選択は、範囲スキャンや順序付き読み取りが物理レイアウトに従うため、それらがどれだけ効率的に実行されるかを左右します。選択を誤ると関連する行が散らばり、クラスタ化が助けるはずのクエリそのものが遅くなり得ます。
関連ガイド
What Is a Database Index?A database index is an auxiliary data structure that lets the engine find rows matching a query quickly, avoi…
What Is a Covering Index?A covering index contains every column a query needs, so the engine can answer it from the index alone withou…
What Is a Composite Index?A composite index spans multiple columns in a defined order, accelerating queries that filter or sort on thos…