docs: reply to M4 deploy report — clarify trace/TKG counts, identities issue

This commit is contained in:
Accusys
2026-05-14 01:58:43 +08:00
parent 11ec006947
commit 7e068f5bb9

View File

@@ -0,0 +1,28 @@
# 165302 包部署回覆
**Date**: 2026-05-14
**From**: M5
**To**: M4
**Ref**: `2026-05-14_pipeline_v2_deploy_report.md`
---
## 數量差異釐清
### TKG edges: 370,310 vs 30,987
Delivery doc 的 370,310 是 TKG builder 的**全域總數**(含所有檔案)。此檔案的 edges 為 **30,987**正確。Doc 已更新。
### Face traces: 9,825 vs 5,483
DB 內此檔案有 **9,825 條 unique trace**`SELECT COUNT(DISTINCT trace_id) FROM dev.face_detections WHERE file_uuid='aeed7134...'`。Package 內的 `dev_face_detections.sql` 含 70,691 行資料trace_id 欄位皆有值。
5,483 可能是舊資料或來自 `identity_bindings` 的 trace 計數binding 只含 trace→identity 映射,不包含所有 trace。請確認統計來源。
### identities_name_key 衝突
`UNIQUE(name)` constraint 在 pre-clean 後仍殘留的原因:**TMDB global identity**Cary Grant, Audrey Hepburn 等)的 `file_uuid IS NULL`step 2 pre-clean 的 `DELETE FROM identities WHERE file_uuid = '{uuid}'` 不會刪到它們。
COPY 嘗試重新 INSERT 這些 global identity 時撞到既有資料。
**解法**:已在 SOP schema migration 加入 `DROP CONSTRAINT IF EXISTS identities_name_key`(此 key 在 v2.0 已不再需要,因 identity 透過 `file_uuid` + `name` 區分而非單靠 name