M7-09c P2 | ChatSession 删除过滤索引 #96
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
全局历史会话列表的删除过滤索引。
索引
CREATE INDEX idx_chat_session_list ON ChatSession(userId, isDeleted, lastMessageAt DESC);
完成情况
交付物
删除过滤索引 (
prisma/schema.prisma):覆盖的查询场景
涉及文件