perf(backend): 大纲卷过滤下推 DB WHERE——list_for_project 加 volume 参数

GET /outline?volume=N 原在端点 Python 侧过滤全部章节;现把 volume 条件下推到
OutlineRepo.list_for_project 的 DB WHERE,只查该卷行(少读多余卷 + 语义正确)。
Protocol/SqlOutlineRepo/各 OutlineRepo fake 同步加 keyword-only volume;补 repo 级
下推断言测试。向后兼容:不传 volume 仍返回全部(默认 None)。
This commit is contained in:
Yaojia Wang
2026-07-08 12:34:06 +02:00
parent c22f6b41d1
commit c596a8d342
17 changed files with 1330 additions and 18 deletions

File diff suppressed because one or more lines are too long