Migrations: Add index on client_id and client_secret for apps.

Greatly speeds up app lookup.
stable
lain 4 years ago
parent 644195e31e
commit acba7043be

@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.AddAppsIndexes do
use Ecto.Migration
def change do
create(index(:apps, [:client_id, :client_secret]))
end
end
Loading…
Cancel
Save