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. |
||
|---|---|---|
| .. | ||
| towerops | ||
| towerops_web | ||
| towerops.ex | ||
| towerops_web.ex | ||