Branch: refs/heads/stable-16.10.x
Home:
https://github.com/xwiki/xwiki-platform
Commit: 68054c4b89d584010aac3ee29ce16f3d621b6bf3
https://github.com/xwiki/xwiki-platform/commit/68054c4b89d584010aac3ee29ce1…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-07-31 (Thu, 31 Jul 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-notifiers/xwiki-platform-notifications-notifiers-default/src/main/java/org/xwiki/notifications/notifiers/internal/UserEventDispatcher.java
M
xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-notifiers/xwiki-platform-notifications-notifiers-default/src/test/java/org/xwiki/notifications/notifiers/internal/UserEventDispatcherTest.java
Log Message:
-----------
XWIKI-23419: Notification pre-filtering is slow with lots of users due to lots of Solr
queries (#4404)
* Don't ever check if mails are pre-filtered as this just duplicates the
logic of the atomic update that we already use.
* Only check for notification statuses when a user is actually listening
to an event.
* Remove unused futures.
* Don't mark an event as pre-filtered after filtering for the users on
the subwiki before filtering for the main wiki users.
* Wait for all events of the batch at once, don't wait for every event
to be committed.
(cherry picked from commit e31a79c94fc3d27c0a9927960fa263b479d34069)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications