Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Rails Indexes
==============

Scans your models and displays a list of columns that _probably_ should be indexed.

note: there should be mode fields depending on your application design and custom queries.
# Install: script/plugin install git://github.com/eladmeidar/rails_indexes.git
# Run it: rake db:show_me_some_indexes
# Or print out a sample migration: rake db:show_me_a_migration


Future:

   Add an option to create a migration that adds all the needed indexes. - in progress, needs to support multiple column indexs (STI, polymorphic, etc).
   Add an option to scan the application root tree for #find, #find_all_by and #find_by to get some more index-required columns.
Author:
   Elad Meidar
   http://blog.eizesus.com
   
Released under the same license as Ruby. No Support. No Warranty.


About

A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors