adding new database index to speed up feeds
This commit is contained in:
1 parent
1f4a118cc7
commit
2d818a723d
2 files changed
+97
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user