Skip to content

Commit

Permalink
Add an index on created_at
Browse files Browse the repository at this point in the history
Not very sure if this is my performance bottleneck (it may be something
else NextJS is doing?), but it's worth a shot.
  • Loading branch information
tdooner committed Jun 21, 2024
1 parent 4c9deed commit da8bf91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "pings_created_at_idx" ON "pings"("created_at");
2 changes: 2 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ model pings {
http_status Int
body_length Int?
created_at String
@@index([created_at])
}

model systems {
Expand Down

0 comments on commit da8bf91

Please sign in to comment.