adding new database index to speed up feeds

This commit is contained in:
ioBridge
2011-03-29 17:06:15 -04:00
parent 1f4a118cc7
commit 2d818a723d
2 changed files with 97 additions and 1 deletions

View File

@ -0,0 +1,9 @@
class AddChannelIdEntryIdIndexToFeeds < ActiveRecord::Migration
def self.up
add_index :feeds, [:channel_id, :entry_id]
end
def self.down
remove_index :feeds, [:channel_id, :entry_id]
end
end