⚡ 全角色加载性能修复(六轮)+ 审核员领取/专注模式视频/work-buffer 根因修复 #38
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "codex/slow-page-performance-20261009"
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?
范围(六轮叠加,全部已线上验证)
按
.scratch/slow-page-diagnosis-report.md实施并逐轮上线验证的加载性能与缺陷修复。第一轮:全站加载性能(C1–C5/S1–S6)
DROBOTICFLOW_VIDEO_PREVIEW_SYNC=1)第二/三轮(ba5c9909):四角色慢加载
organizationId_createdAt索引organizationId_legacyTaskId索引)、剔除 annotationDraft 大字段、草稿按需批量读取request_trace kind=slow)第四轮(efa8f506 + ba1f0ce7):三个用户报障
UpsertHumanStageAttempt改按 (org, item, stage, round) 元组 upsert——review-operation 写入的不同 id 撞organizationId_itemId_stageId_round_unique唯一索引(E11000)<movi-player>(运行时实际渲染的元素)legacyMigrationDone一次性守卫organizationId_latestAuthorUserId索引(mine 池 / work-buffer $or 的无索引分支)第五/六轮(a19459d9 + 99900d58):work-buffer 轮询根因
batches_ms占每 3 秒轮询的 80%(1400–3900ms)——该轮询每次物化 12,009 个批次文档(遗留迁移每任务建一个批次),走 organizationId 单字段索引扫 17,334 行HasRawHumanAnnotationBatch投影存在性查询(首条命中即返回)+ 新索引organizationId_projectId_pluginId与 dev 的合并(e07f3cac)
dev 的并行化(PR #35 errgroup)与本分支的分页/缓存/聚合计数器同时保留:
/api/dashboard/workforce,production 路由包响应缓存enrichDashboardHumanWork:保留聚合计数器快速路径;无接口的 store 走并行 legacy 回退验证证据
go test ./internal/api/失败数改动前后 65=65(上游遗留债,零新增);dashboard/workforce/work-buffer 相关定向测试全绿;go vet+npm run lint:web干净local-data/releases/slow-page-fix-round4/5/6-20261012,含 image-provenance + change-safety 证据);部署后生产日志慢请求数为 0数据安全
纯读路径优化 + 一处元组 upsert 修复;无 schema 迁移、无客户数据改写;全���索引幂等创建。回退 = 两 Deployment patch 回上一镜像。
The D-layer commit (54e47906) was staged from the shared working tree and swept in one unrelated in-flight line: collapsedByDefault={false} on WorkforceStatisticsPanel — a usage of a prop that exists only in a colleague's uncommitted panel WIP. The committed history alone therefore failed tsc (the main tree compiled only because that WIP panel was present locally). Remove the leaked usage so the release branch's committed state is self-contained; the colleague's feature line stays in his uncommitted work exactly where it was.⚡ 加载性能修复:静态压缩/列表分页/认证缓存/dashboard 瘦身/视频直连to ⚡ 全角色加载性能修复(六轮)+ 审核员领取/专注模式视频/work-buffer 根因修复