FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests