api-platform / api-platform/core

[Mercure][Feature] Configure automatic mercure updates

Open
#3,785 1 comment 4 reactions 0 assignees View on GitHub
performance
Dominant language
PHP
Stars
2.6k
Forks
980
Avg merge
2d 5h
Merged PRs (30d)
48

Description

As far as I can see, API Platform sends updates on insert/update/delete (`\ApiPlatform\Core\Bridge\Doctrine\EventListener\PublishMercureUpdatesListener::onFlush`) automatically. This causes performance problems if many entities are updated/inserted/deleted at once. In my case, I'm not listening to inserts and deletions, so it doesn't make sense to send the updates in the first place.

It would be great if some kind of configuration would be possible.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.