Skip to content

Commit

Permalink
add index to snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Dec 20, 2024
1 parent 9985afd commit d1e3550
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-wombats-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

add index to snapshots
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "PrismaPoolSnapshot_poolId_chain_idx" ON "PrismaPoolSnapshot"("poolId", "chain");
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ model PrismaPoolSnapshot {
@@index([protocolVersion])
@@index([timestamp(sort: Desc)])
@@index([poolId, chain])
}

model PrismaReliquaryFarmSnapshot {
Expand Down
1 change: 1 addition & 0 deletions prisma/schema/pool.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ model PrismaPoolSnapshot {
@@index([protocolVersion])
@@index([timestamp(sort: Desc)])
@@index([poolId, chain])
}

model PrismaReliquaryFarmSnapshot {
Expand Down

0 comments on commit d1e3550

Please sign in to comment.