Bläddra i källkod

Migrations: Add index on client_id and client_secret for apps.

Greatly speeds up app lookup.
tags/v2.0.6^2
lain rinpatch 4 år sedan
förälder
incheckning
eabf9317b5
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. +7
    -0
      priv/repo/migrations/20200526144426_add_apps_indexes.exs

+ 7
- 0
priv/repo/migrations/20200526144426_add_apps_indexes.exs Visa fil

@@ -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

Laddar…
Avbryt
Spara