-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
updateDataObject makes blocking calls to the (external) search provider.
updateData is async:
generic-data-index-bundle/src/EventSubscriber/DataObjectIndexUpdateSubscriber.php
Lines 106 to 119 in 159caeb
| $dataObject = $event->getObject(); | |
| Service::useInheritedValues(true, fn () => | |
| $this->indexQueueService | |
| ->updateIndexQueue( | |
| $dataObject, | |
| IndexQueueOperation::UPDATE->value, | |
| $this->synchronousProcessing->isEnabled(), | |
| $dataObject->hasChildren(includingUnpublished: true), | |
| $this->synchronousProcessingRelatedIds->isEnabled() === false | |
| ) | |
| ->commit() | |
| ); | |
| $this->queueMessagesDispatcher->dispatchQueueMessages(); |
but updateSiblings is not:
| if ($newIndex === $this->getIndexedIndex($element) |
this can cause significant slowdowns with object updates, especially for large folders.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels