gitlab-org--gitlab-foss/db/migrate/20160106162223_add_index_milestones_title.rb
Yorick Peterse 7a240397af 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.
2016-01-07 14:53:02 +01:00

5 lines
113 B
Ruby

class AddIndexMilestonesTitle < ActiveRecord::Migration
def change
add_index :milestones, :title
end
end