780e157190
We make a ton of queries on these attributes (for example in /procedures#index and /procedures#show). I think it should help.
7 lines
186 B
Ruby
7 lines
186 B
Ruby
class AddIndexesToDossier < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_index :dossiers, :state
|
|
add_index :dossiers, :archived
|
|
add_index :follows, :unfollowed_at
|
|
end
|
|
end
|