性能优化
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX IF NOT EXISTS "idx_page_parent_order" ON "Page"("parentId", "order");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX IF NOT EXISTS "idx_page_created_at" ON "Page"("createdAt");
|
||||
@@ -22,6 +22,9 @@ model Page {
|
||||
updatedAt DateTime @updatedAt
|
||||
order Int @default(0)
|
||||
isLocked Boolean @default(false)
|
||||
|
||||
@@index([parentId, order], map: "idx_page_parent_order")
|
||||
@@index([createdAt], map: "idx_page_created_at")
|
||||
}
|
||||
|
||||
model GlobalSettings {
|
||||
|
||||
Reference in New Issue
Block a user