towerops/lib
Graham McIntire ae9983c4f6
Optimize agent health stats N+1 query problem
Replaced per-agent queries with batch queries in get_organization_agent_health:
- get_batch_equipment_counts: Returns counts for all agents at once
- get_batch_last_metric_times: Single GROUP BY query for all agent metrics

Performance improvement: For 10 agents, reduces from 21 queries to 3 queries.

Note: Equipment counting still uses application logic due to complex
hierarchical inheritance rules. Last metric times now use efficient
grouped query with agent assignments join.
2026-01-14 18:59:09 -06:00
..
towerops Optimize agent health stats N+1 query problem 2026-01-14 18:59:09 -06:00
towerops_web Implement all quick win improvements for agent UI and functionality 2026-01-14 18:46:03 -06:00
towerops.ex init 2025-12-21 11:10:43 -06:00
towerops_web.ex separate out marketing layouts 2026-01-06 14:46:39 -06:00