From 93785676418218e760add52038dfe0818906f6a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Fri, 2 Oct 2026 13:13:14 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E8=BF=90=E7=BB=B4):=20=E8=B4=A7=E6=BA=90?= =?UTF-8?q?=E4=B8=A4=E5=A4=84=E5=88=86=E7=89=87=E5=8F=8C=E8=AF=BB=E5=B7=B2?= =?UTF-8?q?=E6=B6=88=E9=99=A4=E8=AE=B0=E5=BD=95=EF=BC=8C=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E5=80=8D=E6=95=B0=E5=9C=A8=20flush=20=E6=8C=89=E7=BB=84?= =?UTF-8?q?=E9=87=8D=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/ops/perf-review-2026-10-02.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/ops/perf-review-2026-10-02.md b/docs/ops/perf-review-2026-10-02.md index 41ab7b162..46f416b3c 100644 --- a/docs/ops/perf-review-2026-10-02.md +++ b/docs/ops/perf-review-2026-10-02.md @@ -45,7 +45,15 @@ B 组是 DB / 对象存储的往返浪费(心跳整行读、删除路径的全 每批的 `loadSubmittedChunks`(DB SELECT 全部分片)保留——它就是锚,不能省。 读的次数从 `(批数+1)×分片数` 降到 `分片数 + 本批写过的片数`。 改法 2(`rowKey→chunkKey` 索引去掉逐片线性试探)**未做**:那是内存里的 O(C) 扫描,不是这次的瓶颈。 -测试 `AppearancePatentChunkRowIndexTest` 3 例,逐条做过变异检验;**货源侧 `SimilarAsinPipelineSupport.java:183-187` 是同一形态、还没改**。 +测试 `AppearancePatentChunkRowIndexTest` 3 例,逐条做过变异检验。 + +**货源侧同形态已消除(10-02 13:0x,未发版)** —— `SimilarAsinPipelineSupport`:判空探测与建行图 +合成 `readSubmittedChunks` 的一次读取(新增 `SubmittedChunk` record,只在当次调用内传递,不做字段级 +缓存),`collectPendingLlmCandidates` 改用已读到的行、不再逐片 GET。每轮 merge 的 GET 从 +`2×分片数 + 写回数` 降到 `分片数 + 写回数`(3 片实测 7→4),`submitLlmForSubmittedChunk` 从 `2C` 降到 `C`; +写回次数与判定结果一行未动。测试 `SimilarAsinTaskServiceChunkReadReuseTest` 3 例(其中一例专防"做成跨调用缓存"),逐条变异检验。 +**货源侧没跟着做外观那套跨批复用索引**:余下的倍数在 `flushLlmBufferedResults`——它按 chunkScopeHash 分组、 +每组调一次 `mergeLlmRowsIntoChunk`,每次仍读全部分片(G 组 = G×C 次),要省得先把索引提到 flush 这一层,另计。 ### A2 外观专利:品牌校验合批 + 复用已有缓存 `[P0]`