update code level

This commit is contained in:
lychang
2026-07-20 23:12:20 +08:00
parent 923f9bd7cf
commit 84409207e2
19 changed files with 1471 additions and 428 deletions

View File

@@ -0,0 +1,3 @@
-- 为 person_albums 添加 album_id 索引,优化 JOIN 查询和按相册查找的性能
-- person_id 已有主键索引 (person_id, album_id) 覆盖,无需重复创建
CREATE INDEX IF NOT EXISTS idx_pa_album ON person_albums(album_id);