Replace the per-run getById loop with a single getAllById call on distinct person IDs, eliminating the N+1 query when training history contains multiple sender model runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the per-run getById loop with a single getAllById call on distinct person IDs, eliminating the N+1 query when training history contains multiple sender model runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>