Red Hat Bugzilla – Bug 616746
Perf: consider putting an index on resource(id,parent_id)
Last modified: 2014-06-04 15:58:14 EDT
For things like uninventory of resources, the resource id and parent id are queried.
Putting an index on this will considerably speed up things.
For the long term, some more clever (pre)computation is needed instead of the relatively expensive queries we have today.
We have individual indexes on ID and PARENT_ID. I think this is sufficient.