Added an index on milestones.title
Certain pages (e.g. the group wide issues page) filter miletones by their title. Without an index this will result in a sequence scan on a large dataset increasing the total loading time of a page.
This commit is contained in:
parent
61561a9eeb
commit
7a240397af
|
@ -0,0 +1,5 @@
|
|||
class AddIndexMilestonesTitle < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :milestones, :title
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue