We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
explore
popular
1 parent 1c376cf commit 9a78aa3Copy full SHA for 9a78aa3
prisma/migrations/20231104152326_indices/migration.sql
@@ -0,0 +1,8 @@
1
+-- CreateIndex
2
+CREATE INDEX "Post_time_idx" ON "Post"("time");
3
+
4
5
+CREATE INDEX "Post_replyCount_idx" ON "Post"("replyCount" DESC);
6
7
8
+CREATE INDEX "Reply_time_idx" ON "Reply"("time");
prisma/schema.prisma
@@ -52,6 +52,9 @@ model Post {
52
replies Reply[]
53
54
takedown PostTakedown?
55
56
+ @@index([time])
57
+ @@index([replyCount(sort: Desc)])
58
}
59
60
model Reply {
@@ -66,6 +69,7 @@ model Reply {
66
69
takedown ReplyTakedown?
67
70
68
71
@@index([postId])
72
73
74
75
model Activity {
0 commit comments