index は、database が table 全体を scan せずに rows を素早く見つけるための data structure です(通常は B-tree)。本の索引のようなものです。indexed columns に対する lookup、filter、join、sort を大幅に高速化しますが、追加 storage と slower writes という cost があります。
index が役立つ仕組み
users email ;
INDEX idx_users_email users(email);
