Bug 1337995 - REST fetch of groups doesn't scale
Summary: REST fetch of groups doesn't scale
Status: ON_DEV
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.13
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
Depends On:
Blocks: 1339301
TreeView+ depends on / blocked
Reported: 2016-05-20 16:22 UTC by Jay Shaughnessy
Modified: 2016-05-24 15:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Jay Shaughnessy 2016-05-20 16:22:56 UTC
Fetching groups via REST does not scale.  This is due to the code always fetching all implicit and explicit resources for the fetched groups.

AbstractRestBean.fillGroup() is the problem, it pulls in a bunch of lazy-load data, most notably, all of the group's resources.

Note that fillGroup is used in some other rest services as well.

To recreate just rhqhost:7080/rest/group.html, as the group membership grows so will the resources consumed, until it falls over.

Comment 1 Jay Shaughnessy 2016-05-20 18:42:41 UTC
PR sent: https://github.com/rhq-project/rhq/pull/255

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