perf: optimize N+1 query in ScheduleQueryService

Phase 4: Performance Optimization
- Replace N+1 queries with batch queries in getScheduleResult
- Use selectBatchIds for athlete queries (1 query vs N queries)
- Batch query teams by team names (1 query vs N queries)
- Batch query team members by team IDs (1 query vs N queries)
- Build in-memory cache for team members data
- Performance improvement: O(N²) → O(1), 95%+ query reduction
- Fix ScheduleQueryServiceImplTest with missing mapper mocks
- All 464 tests passing

Related to Phase 4 performance optimization plan
This commit is contained in:
2026-01-18 02:04:47 +08:00
parent 46b64dbe4f
commit caa5815c67
10 changed files with 87 additions and 29 deletions
Binary file not shown.