Skip to content

Commit

Permalink
Add index on competitions end_date
Browse files Browse the repository at this point in the history
We filter old competitions for data removal based on end_date,
so this index is to make that query more efficient.
  • Loading branch information
jonatanklosko committed Dec 2, 2024
1 parent cd8351a commit d738b59
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defmodule WcaLive.Repo.Migrations.AddCompetitionsEndDateIndex do
use Ecto.Migration

def change do
create index(:competitions, [:end_date])
end
end

0 comments on commit d738b59

Please sign in to comment.