http://jira.hyperic.com/browse/HHQ-2036
I see following query every time I visit resource monitor page. I believe this gets the number for log events for the 0-60 timeline.
The test setup has ~500K event logs.
Not sure if the query is still the same in 4.0 with resource hierarchy changes.
SELECT i FROM EAM_NUMBERS WHERE i < 60 AND EXISTS (SELECT id FROM EAM_EVENT_LOG WHERE timestamp BETWEEN (1209572573882 + (480000 * i)) AND ((1209572573882 + (480000 * (i + 1))) - 1) AND entity_id = 11704 AND entity_type = 1 LIMIT 1);
Anonymous