Added index on issues.state
This field is queried when filtering issues and due to the lack of an index would end up triggering a sequence scan.
This commit is contained in:
parent
a42d469ab2
commit
50f6541610
1 changed files with 5 additions and 0 deletions
5
db/migrate/20151109134526_add_issues_state_index.rb
Normal file
5
db/migrate/20151109134526_add_issues_state_index.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddIssuesStateIndex < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :issues, :state
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue