In Rails, I try to create database indexes that speed up my queries, but I often find that after migrating my database to create new ones, it still does not use the indexes that I create (even though they seem ideal for a particular query) .
Is there a tool in Rails that can search for a system and identify specific indexes that need to be created for optimal performance?
If not, are there any specific rules that determine why my database does not use my lovingly created indexes?
Essentially, my question is: how can I avoid my current process, which: 1) start the migration by creating a bunch of possible indexes, 2) find out that they do not work, 3) rollback and the feeling of a little more frustrated in my database is obvious myopia ?
source
share