mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 23:32:53 +00:00
filter_by_project should be faster
This commit is contained in:
parent
f67675533c
commit
071893cbf4
1 changed files with 9 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
class AddIndexToHeartbeatsProject < ActiveRecord::Migration[8.0]
|
||||
# this is what i got from stackoverflow
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :heartbeats, :project, algorithm: :concurrently
|
||||
add_index :heartbeats, [:project, :time], algorithm: :concurrently
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue