fix: add createdAt index to ReviewCard model to fix slow admin page load
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
The admin review list query uses ORDER BY createdAt DESC but there was no index on createdAt, causing full table scan + filesort on large tables. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
d241407424
commit
8a6b103571
@ -521,6 +521,7 @@ model ReviewCard {
|
||||
@@index([userId])
|
||||
@@index([nextReviewAt])
|
||||
@@index([focusItemId])
|
||||
@@index([createdAt])
|
||||
}
|
||||
|
||||
model ReviewLog {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user