When using a custom portlet with OOTB data provider on Action Items in Classic and multi-select filtering on Assignee ID, the query generated is very slow and causes performance issues in Clarity
STEPS TO REPRODUCE:
- Use a large dataset data with similar amounts to the below:
- Resources in the system: 85K
- Action Items in the system 25K
- With Admin user, connect to Administration – Portlets
- Create a new custom Grid portlet with Data Provider Action Item
- Finish and open
- In List Column Section, add the columns Assignee ID, Created Date, Due Date, Object Type, Send Reminder
- In List Filter Section, Add Object Type, Due Date and Assignee ID
- Enable Allow Power Filter
- Now go to Fields – click on the icon for Assignee ID
- Lookup Style – Switch it to Multiple Select, Save
- Now add this portlet to a new tab in General – Overview
- Go to the tab, note the portlet is opening fairly fast
- Now use the filter on Assignee ID:
- Option 1 - in regular filter – add 2+ resources to Assignee ID
- Option 2 – create a power filter to include 2+ resources in Assignee ID with OR condition
Expected Results: The portlet to open within reasonable time
Actual Results: The portlet takes over 19 min to return results, page is spinning, the slow query is getting stuck in Oracle. If the user gets impatient and opens a few of the requests, this may cause performance issues to all users