Skip to content
Justice Tech School

Indexes

An index speeds up lookups on a column but slows writes a little.

Example
CREATE INDEX idx_students_country ON students(country);
SELECT name FROM sqlite_master WHERE type = 'index';

Result

name
idx_students_country

Exercise

Create an index.

CREATE  idx ON t(c)

Quiz Test

What do indexes speed up?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.