Skip to content
Theory · Indexes and query plans · lesson 4 of 11

EXPLAIN

The index is created, but how do you know whether the database uses it? The query result won't tell you: with or without the index the rows are the same. You need to ask the database which way it will go.

In this lesson

  • How to read a plan
  • An index exists, but the plan stays
  • How to see an Index Scan
  • Common mistake
  • Key points