Index records by type to improve query perf

This commit is contained in:
Claudio Ortolina
2024-11-23 23:16:24 +00:00
parent 93b347ad8d
commit b2e1f1f8d1
2 changed files with 10 additions and 3 deletions
@@ -0,0 +1,7 @@
defmodule MusicLibrary.Repo.Migrations.AddTypeIndexToRecords do
use Ecto.Migration
def change do
create index("records", [:type])
end
end