性能优化

This commit is contained in:
2026-03-04 14:04:55 +08:00
parent 4bbfbede01
commit e69f79f9db
10 changed files with 270 additions and 109 deletions
BIN
View File
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");
+3
View File
@@ -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 {