Skip to content

Commit c299e26

Browse files
authored
improve machine and ip address heartbeat querying speeds (#490)
1 parent 5544ebb commit c299e26

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class AddAltIdentifyingIndexes < ActiveRecord::Migration[8.0]
2+
def change
3+
add_index :heartbeats, :ip_address
4+
add_index :heartbeats, :machine
5+
end
6+
end

db/schema.rb

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)