This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-fdeba9aa-1212-4f3c-bf22-b500fc06ec4e XWIKI-24523 Open

Improve performance of notification dispatching by reducing right checks

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-edaf8a79-2227-4683-a90e-20a5a3128c5f Michael Hamann created this issue on 26/Jun/26 10:45
 
Summary: Improve performance of notification dispatching by reducing right checks
Issue Type: cid:jira-generated-image-avatar-fdeba9aa-1212-4f3c-bf22-b500fc06ec4e Improvement
Affects Versions: 14.10
Assignee: Unassigned
Components: Notifications
Created: 26/Jun/26 10:45
Priority: cid:jira-generated-image-static-major-f1935c84-0b5f-4ddb-b1b4-96b085d05926 Major
Reporter: Michael Hamann
Description:

Notification dispatching can be very slow on large instances when the security cache cannot be used efficiently (for example, because it is full) or right checks are slow because of custom access control rules that are expensive to evaluate. This is because, at the moment, notification dispatching checks for every dispatched event for every user a) if the user has access to the associated entity (document, space or wiki) and b) if the user should get a notification according to the notification filters. In many cases, users have access to the entity associated with the event but shouldn't be notified. The order should be inverted to first check if the user should get a notification and then check rights to avoid checking rights for most users. This will in particular help in wikis with many users who are rarely or never getting any notifications.