History | Log In     View a printable version of the current page.  
HQ 4.0 EE Release is Now Available | HQ 3.2.5-EE Maintenance Release is Now Available
Issue Details (XML | Word | Printable)

Key: HHQ-2238
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Scott Feldstein
Reporter: Scott Feldstein
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hyperic HQ

enhance / investigate slow query in HQ

Created: 16/Jul/08 02:36 PM   Updated: Wednesday 11:02 AM
Component/s: None
Affects Version/s: 3.2.4
Fix Version/s: 3.2.7

Verify By: Kashyap Parikh
Last comment: 17 weeks, 3 days ago


 Description  « Hide
Slow query is ->

  SELECT M.ID FROM EAM_MEASUREMENT M, EAM_MEASUREMENT_TEMPL T, EAM_MONITORABLE_TYPE MT WHERE M.TEMPLATE_ID = T.ID AND T.MONITORABLE_TYPE_ID = MT.ID AND M.MEASUREMENT_CLASS='S' AND ((MT.APPDEF_TYPE = N AND M.INSTANCE_ID NOT IN (SELECT INSTANCE_ID FROM EAM_RESOURCE WHERE RESOURCE_TYPE_ID = N)) OR (MT.APPDEF_TYPE = N AND M.INSTANCE_ID NOT IN (SELECT INSTANCE_ID FROM EAM_RESOURCE WHERE RESOURCE_TYPE_ID = N)) OR (MT.APPDEF_TYPE = N AND M.INSTANCE_ID NOT IN (SELECT INSTANCE_ID FROM EAM_RESOURCE WHERE RESOURCE_TYPE_ID = N)))


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Scott Feldstein - 16/Jul/08 02:36 PM
linking to support ticket

Scott Feldstein - 21/Jul/08 03:22 PM
this may not be worth fixing in 3.2.x since it is already fixed up in 4.0 to key off just the EAM_MEASUREMENT table where resource_id = null.