From 799708581383a217ac4832dad6fd172fecb617bd Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 10 Mar 2022 13:17:30 -0600 Subject: [PATCH] add more indices to item --- .../20220310191658_more_indexes/migration.sql | 14 ++++++++++++++ prisma/schema.prisma | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 prisma/migrations/20220310191658_more_indexes/migration.sql diff --git a/prisma/migrations/20220310191658_more_indexes/migration.sql b/prisma/migrations/20220310191658_more_indexes/migration.sql new file mode 100644 index 00000000..dc59cd10 --- /dev/null +++ b/prisma/migrations/20220310191658_more_indexes/migration.sql @@ -0,0 +1,14 @@ +-- CreateIndex +CREATE INDEX "Item.status_index" ON "Item"("status"); + +-- CreateIndex +CREATE INDEX "Item.maxBid_index" ON "Item"("maxBid"); + +-- CreateIndex +CREATE INDEX "Item.statusUpdatedAt_index" ON "Item"("statusUpdatedAt"); + +-- CreateIndex +CREATE INDEX "Item.subName_index" ON "Item"("subName"); + +-- CreateIndex +CREATE INDEX "Item.pinId_index" ON "Item"("pinId"); diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5d4bd428..44d1b42f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -125,6 +125,11 @@ model Item { @@index([createdAt]) @@index([userId]) @@index([parentId]) + @@index([status]) + @@index([maxBid]) + @@index([statusUpdatedAt]) + @@index([subName]) + @@index([pinId]) } enum PostType {