- Published on
Investigation · Part 5 of 10 · Inside a database index
A Covering Index Never Touches the Table
When an index has every column a query needs, SQLite never opens the table. For one row this saves almost nothing. For 67,245 rows it was 98 ms against 21 ms with a warm cache, and 875 ms against 24 ms with a cold one.