Bug 722600 - consider adding index to RHQ_MEASUREMENT_SCHED.RESOURCE_ID column as recommended by Oracle EM to improve performance of call-time data purge delete queries
Summary: consider adding index to RHQ_MEASUREMENT_SCHED.RESOURCE_ID column as recommen...
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server
Version: 4.0.1
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: Robert Buck
QA Contact: Mike Foley
Depends On:
Blocks: jon3 jon30-perf rhq41beta
TreeView+ depends on / blocked
Reported: 2011-07-15 19:32 UTC by Ian Springer
Modified: 2013-08-06 00:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-02-07 19:29:33 UTC

Attachments (Terms of Use)
new Oracle index does indeed exist -- verification (77.60 KB, image/png)
2011-08-10 19:25 UTC, Mike Foley
no flags Details

Description Ian Springer 2011-07-15 19:32:22 UTC
This was recommended by Oracle EM in our perf environment:

SQL Text
delete from RHQ_CALLTIME_DATA_KEY where SCHEDULE_ID in (select id from RHQ_MEASUREMENT_SCHED measuremen1_ where measuremen1_.RESOURCE_ID in (:1 ))
Select Recommendation
New Explain Plan
	Index	The execution plan of this statement can be improved by creating one or more indices.	Consider running the Access Advisor to improve the physical schema design or creating the recommended index.
JON.RHQ_MEASUREMENT_SCHED("RESOURCE_ID")	Creating the recommended indices significantly improves the execution plan of this statement. However, it might be preferable to run "Access Advisor" using a representative SQL workload as opposed to a single statement. This will allow to get comprehensive index recommendations which takes into account index maintenance overhead and additional space consumption.

We should try adding this index and see if EM stops reporting the call-time purge queries as problematic.

Comment 1 Robert Buck 2011-08-02 13:55:09 UTC
Diffs Here:


Branch: feature/performance


commit 5697849505fb1a792f3a45935b82aeb6ea3f0234
Author: Robert Buck <buck.robert.j@gmail.com>
Date:   2011-07-28 18:06:59 -0400

    [BZ 722600] Add index to RHQ_MEASUREMENT_SCHED.RESOURCE_ID column as recommended by Oracle EM to improve performance.

Comment 2 Robert Buck 2011-08-08 20:20:58 UTC
Committed this to master in:


Comment 3 Mike Foley 2011-08-10 19:25:05 UTC
attaching image documenting that this index does indeed exist in RHQ 4.1 Beta.

Comment 4 Mike Foley 2011-08-10 19:25:47 UTC
Created attachment 517679 [details]
new Oracle index does indeed exist -- verification

Comment 5 Mike Foley 2011-08-10 19:31:05 UTC
verified as follows:
1) index exists in oracle 
2) basic functional use-case works (monitoring of traits, metrics, call times
3) no SQL or hibernate errors in RHQ log file
4) out-of-scope: did not verify the performance improvement of the addition of this index.

Comment 6 Mike Foley 2012-02-07 19:29:33 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE

Comment 7 Mike Foley 2012-02-07 19:30:19 UTC

Note You need to log in before you can comment on or make changes to this bug.