Skip to content

Commit

Permalink
Merge pull request #3782 from benwbrum/3780-slow-statistics-fix
Browse files Browse the repository at this point in the history
Add index to work statistics for #3780
  • Loading branch information
benwbrum authored Sep 12, 2023
2 parents 7a201d3 + 35b2e7c commit 9d24ba6
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 98 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20230912135655_add_index_to_work_statistics.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddIndexToWorkStatistics < ActiveRecord::Migration[6.0]
def change
add_index :work_statistics, [:work_id, :line_count]
end
end
Loading

0 comments on commit 9d24ba6

Please sign in to comment.