Skip to content

Commit

Permalink
perf(db): add category index
Browse files Browse the repository at this point in the history
  • Loading branch information
PJColombo committed Sep 5, 2024
1 parent 3f4386c commit f772360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "transaction_category_idx" ON "transaction"("category");
1 change: 1 addition & 0 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ model Transaction {
@@index([blockNumber])
@@index([blockNumber, index])
@@index([blockTimestamp])
@@index([category])
@@map("transaction")
}

Expand Down

0 comments on commit f772360

Please sign in to comment.