From 7e068f5bb9938b44a10631866a3f2a295233d638 Mon Sep 17 00:00:00 2001 From: Accusys Date: Thu, 14 May 2026 01:58:43 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20reply=20to=20M4=20deploy=20report=20?= =?UTF-8?q?=E2=80=94=20clarify=20trace/TKG=20counts,=20identities=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-05-14_pipeline_v2_deploy_response.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs_v1.0/M4_workspace/2026-05-14_pipeline_v2_deploy_response.md diff --git a/docs_v1.0/M4_workspace/2026-05-14_pipeline_v2_deploy_response.md b/docs_v1.0/M4_workspace/2026-05-14_pipeline_v2_deploy_response.md new file mode 100644 index 0000000..1cec923 --- /dev/null +++ b/docs_v1.0/M4_workspace/2026-05-14_pipeline_v2_deploy_response.md @@ -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)。