ஒரு index என்பது ஒரு data structure (பொதுவாக ஒரு B-tree), இது database-ஐ முழு table-ஐயும் scan செய்யாமல் rows-களை விரைவாகக் கண்டறிய அனுமதிக்கிறது — ஒரு புத்தகத்தின் index போல. index செய்யப்பட்ட column(s)-களில் lookups, filters, joins மற்றும் sorts-களை இது வியக்கத்தக்க அளவில் வேகப்படுத்துகிறது, கூடுதல் storage மற்றும் மெதுவான writes என்ற செலவில்.
ஒரு index எப்படி உதவுகிறது
users email ;
INDEX idx_users_email users(email);
