ai-code-battle/cmd
jedarden 0449606ac7 fix(db): add LIMIT to pair frequency query to prevent OOMKill in acb-index-builder
The fetchOpenPredictions function had an unbounded query building a pair
frequency map for rivalry detection. With thousands of bots and matches,
this could return tens of thousands of rows and cause OOMKill.

- Add ORDER BY COUNT(*) DESC to prioritize most common pairings
- Add LIMIT 1000 - sufficient to detect rivalries (pairs with >= 3 matches)

This fixes the 45-day CrashLoopBackOff with 4700+ restarts.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-25 01:29:26 -04:00
..
acb-api feat(api): add GET /api/status/{bot_id} endpoint per plan §8.2 2026-05-25 16:53:03 -04:00
acb-enrichment fix(dockerfile): correct golang version from 1.24 to 1.25 2026-06-04 08:52:03 -04:00
acb-evolver feat(evolver): add C# language support 2026-06-17 05:08:19 -04:00
acb-index-builder fix(db): add LIMIT to pair frequency query to prevent OOMKill in acb-index-builder 2026-06-25 01:29:26 -04:00
acb-local Implement SiegeBot: spawn-lockout strategy 2026-06-17 01:02:01 -04:00
acb-map-evolver style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-mapgen fix(mapgen): align spawn radius comment with actual implementation (30% vs 15%) 2026-05-26 19:28:49 -04:00
acb-maps-loader style: format Go files with gofmt 2026-05-25 15:33:38 -04:00
acb-matchmaker style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-wasm style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-worker feat(engine): add pre-generated map loading from map library 2026-05-25 14:14:27 -04:00