Similar to https://issues.liferay.com/browse/WCM-1389 where we restrict the page load allowing pagination this should be done for the other user attributes for performance. This ticket is focusing on Site Member and Site Roles.
- Deploy Audience Targeting portlet
- Restart server (if needed)
- Go to Site > Configuration > Audience Targeting > and add a new User Segment. Note load time.
- Create at least 4,000 sites.
- Create at least 4,000 site roles.
- Go to Site > Configuration > Audience Targeting > and add a new User Segment
Expected Results: Page loads in the same speed.
Actual Results: Page loads after a few seconds or minutes or sometimes buffer overflow.