add some indexes that speed up some queries

found with the help of query_reviewer at http://code.google.com/p/query-reviewer/
also fixed a removal of an index when you migrate back
you need to rake db:migrate to create the indexes
This commit is contained in:
Reinier Balt 2008-08-03 22:05:31 +02:00
parent 4316912e86
commit edb6afd115

View file

@ -17,6 +17,8 @@ class AddTagSupport < ActiveRecord::Migration
end
def self.down
remove_index :taggings, [:tag_id, :taggable_id, :taggable_type]
remove_index :tags, :name
drop_table :taggings
drop_table :tags
end