Affects Version/s: 7.1.X, 7.2.X, 7.3.X, Master
When navigating to certain areas of the portal where recent groups are used, the amount of time it takes to retrieve said groups can be very long depending on how many recent groups are available. In one customer example, there were over 250 recent groups. There is at least one DB fetch per recent group, and in some cases, only one recent group is needed to determine a boolean value.
Steps to reproduce:
- Add the following portal-ext.properties:
- Run the CreateRecentGroups.groovyscript which creates 1000 groups and places them into your recent groups list. This may take a few minutes.
- Navigate to one of the newly created groups (this is only required if testing the solution with the script. The solution will prevent many recent groups from being added, however the script bypasses this and forces 1000 groups into the list.)
- Click on the compass icon to view recent sites
Expected results: Site navigation works quickly
Actual results: Site navigation takes some time, because all the recent groups are being re-validated per page refresh.
Reproduced in master: b50d81b60bf1437cc1418227d8d96eaefefce314