recompute-persona.cli.ts
7.1 KB
-
fix(persona): recompute-persona --clinics 大诊所分块查患者(避开 PG 32767 绑定参数上限) · 607d7f7f
建国门补摄(~5万患者)时 prisma.patient.findMany({ id: { in: 50383 } }) 触发 "too many bind variables, max 32767"。改为按 2万/块分批查再合并(排序保持分片稳定序)。 小诊所行为不变;不传 --clinics 仍走原全量路径。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>luoqi committed