Implemented
0
Provide `INotifier::preloadMany()` to allow implementations to preload and cache data for many notifications at once
Source: nextcloud/server#54231 · opened by @st3iny
The INotifier::prepare() method is called once for every notification. If an implementation is fetching additional data for each notification this benefits performance. An implementation would then be able to query all data at once instead of doing multiple small queries.
Plan
1. Provide IPreloadableNotifier::preloadMany(INotification[] $notifications, string $language): void (in a new interface).
2. Add the method to the notification manager and only call it when a notifier implements the optional, new interface.
3. Adjust all usages in the notifications app, for example, in EndpointController.
Plan
1. Provide IPreloadableNotifier::preloadMany(INotification[] $notifications, string $language): void (in a new interface).
2. Add the method to the notification manager and only call it when a notifier implements the optional, new interface.
3. Adjust all usages in the notifications app, for example, in EndpointController.
No pledges yet. Be the first to back this.
Comments
Similar requests
Cache compiled routes
0 votes · 0 comments
File cache table excessively large (and does not shrink after data removal) / Nextcloud should defragment file cache table
28 votes · 0 comments
Implement batched property fetching API for DAV plugins to optimize propfind performance
1 vote · 0 comments
Fix or retire legacy notifications in the Updater to avoid constant updater notifications if the Notifications app is disabled
1 vote · 0 comments
Distributed caches are always mem caches
0 votes · 0 comments
No comments yet.