memoryweave/go/internal/api
小怡 2e04adf054 perf(recall): 累积延迟更新治理写放大 — 读路径零逐条写 + 单事务批量落盘 (t_8496e8b6)
根因: recall 读路径对每条结果同步 lancedb.Update,LanceDB MVCC 每次提交=1 版本
      实测 15 版本/分钟 / _versions 17.7G(真实数据 22M)

改动:
- Go: 新增 RecallWriteBuffer(窗口合并+阈值触发+优雅退出落盘);recall.go 读路径改 Record();RustLanceDBClient.UpdateRecallBatch
- Rust: lancedb_update_batch IPC — 按 delta 分组,每组一次 update(`recall_count + delta` + id IN (...)) 提交
- 单测 6 个 + IPC 端到端版本计数测试;bench_test.go 修 NewReranker 签名失配(阻塞包测试)

实测: 批量 3 条 → 1 个版本;逐条 3 次 → 3 个版本 (lance 不支持 CASE WHEN,已按 delta 分组规避)
2026-09-12 17:57:31 +08:00
..
middleware fix: 静态文件路径 / 在 Auth 白名单中放行(供 Web UI 直接访问) 2026-06-02 17:34:28 +08:00
routes fix(recall): 笔记知识对召回不可见 —— 补搜 wiki-curator-main 2026-09-11 21:22:22 +08:00
server.go perf(recall): 累积延迟更新治理写放大 — 读路径零逐条写 + 单事务批量落盘 (t_8496e8b6) 2026-09-12 17:57:31 +08:00
server_sqlite_nowindows.go fix: add clusters_found/noise_points/quality_score to consolidate API response 2026-06-08 10:35:10 +08:00
server_storage_nowindows.go fix: add clusters_found/noise_points/quality_score to consolidate API response 2026-06-08 10:35:10 +08:00
server_storage_windows.go fix: add clusters_found/noise_points/quality_score to consolidate API response 2026-06-08 10:35:10 +08:00