Add a basic lookup index.
Section: SQLite index creation
Create an index
sql
sql
CREATE INDEX idx_notes_user_id_created_at ON notes (user_id, created_at DESC);Explanation
A compact way to speed up per-user timelines or history screens.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing SQLite index creation