by rubyist5eva · 5y ago · 0 comments
Select “a” from “b” where “c” = 1;
With a composite index on c and a allows you to fetch everything you need without even looking at the table.
In some cases on big databases, adding covering index is the way to make your apication perform well, by eliminating those table lookups.