Skip to content

Instantly share code, notes, and snippets.

@clown-san
Last active August 13, 2023 11:07
Show Gist options
  • Save clown-san/e4bfa14b7397757fcee497e5d02bada7 to your computer and use it in GitHub Desktop.
Save clown-san/e4bfa14b7397757fcee497e5d02bada7 to your computer and use it in GitHub Desktop.
表示 意味
system テーブルに1行のみ存在する
const プライマリキー、ユニークキーのルックアップによるアクセス
eq_ref join での const と同義
ref const ではないインデックスを使って等価検索
range インデックスを用いた範囲検索
index フルインデックススキャン
ALL フルテーブルスキャン
fulltext FULLTEXT インデックスによる検索
ref_or_null ref、さらに NULL 値でも検索する
index_merge インデックスマージ最適化を使用
unique_subquery 効率化のため、サブクエリを完全に置き換える単なるインデックスルックアップ関数
index_subquery 動作は unique_subquery と同じ。サブクエリ内の一意でないインデックスに対して機能する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment