From 39e706b7cf2a05bb5d698938a7ab943791836855 Mon Sep 17 00:00:00 2001 From: Avris Date: Sat, 20 Nov 2021 12:30:22 +0100 Subject: [PATCH] [perf] more sql indexes --- migrations/039-more-indexes.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 migrations/039-more-indexes.sql diff --git a/migrations/039-more-indexes.sql b/migrations/039-more-indexes.sql new file mode 100644 index 00000000..08a8a34a --- /dev/null +++ b/migrations/039-more-indexes.sql @@ -0,0 +1,15 @@ +-- Up + +CREATE INDEX "profiles_teamName" ON "profiles" ("teamName"); +CREATE INDEX "profiles_footerName" ON "profiles" ("footerName"); +CREATE INDEX "profiles_footerAreas" ON "profiles" ("footerAreas"); + +CREATE INDEX "reports_userId" ON "reports" ("userId"); + +-- Down + +DROP INDEX "profiles_teamName"; +DROP INDEX "profiles_footerName"; +DROP INDEX "profiles_footerAreas"; + +DROP INDEX "reports_userId";