DbIndexes

Added by mikhailov at November 16, 2009 04:49 Star_smallStar_smallStar_smallStar_small_halfStar_small_gray
GitHub stats:
Magnifier watcher(s)
Arrow_branch fork(s)
Wrench

About

Indexes play such an important role in database development that it’s worth devoting some additional time to learn these features.
You will be able to see indexes in real-time bottom of every page.
Just trace your logs and add/remove database indexes on the fly!

Usage

Put the setting into config file config/environments/development.rb:

config.middleware.use 'DbIndexes'

Just add table name and column name.
Examples:

Table "banners", column "street" #one-column
Table "banners", column "street_city" #one-column
Table "banners", column "street_city_format" #multiple-column
blog comments powered by Disqus