db: add updated_at index on wiki pages.
The wiki pages sidebar is ordered by updated_at. The sidebar is present on all wiki pages, so this improves load times for all wikis.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AddUpdatedAtIndexOnWikiPages < ActiveRecord::Migration
|
||||
def change
|
||||
WikiPage.without_timeout do
|
||||
add_index :wiki_pages, :updated_at
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user