Skip to content

Commit

Permalink
Adds indexes (#3035)
Browse files Browse the repository at this point in the history
Going by common query patterns, these indexes seemed the most appropriate, at the time of this writing.
  • Loading branch information
gagandeepb authored Sep 30, 2024
1 parent 33aab6e commit f01119f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
defmodule Trento.Repo.Migrations.AddActivityLogIndex do
use Ecto.Migration

def change do
create index(:activity_logs, [:type])
create index(:activity_logs, [:actor])
end
end

0 comments on commit f01119f

Please sign in to comment.