[
https://jira.nuxeo.org/browse/NXP-5995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julien Carsique updated NXP-5995:
---------------------------------
Fix Version/s: 5.4.0.1
> Improve performance of bundle events processing in async listener
> -----------------------------------------------------------------
>
> Key: NXP-5995
> URL: https://jira.nuxeo.org/browse/NXP-5995
> Project: Nuxeo Enterprise Platform
> Issue Type: Improvement
> Affects Versions: 5.4
> Reporter: Benoit Delbosc
> Assignee: Benoit Delbosc
> Fix For: 5.4.0.1, 5.4.1
>
>
> Async listener should not iterate on events when receiving EventBunde
> public void handleEvent(EventBundle events) {
> for (Event event : events) {
> handleEvent(event);
> }
> }
> For async listener events are ReconnectedEventBundle and iterating on them
> will reconnect all events, this means opening a session and create document
> model and context for each event (see
> ReconnectedEventBundleImpl.getReconnectedEvents())
> This is very expensive and useless if the listener is not interested in any
> event in the bundle.
> A first optimisation may be to use containsEventName in the listener to check
> if the interesting event is present in the bundle,
> that should not reconnect any events.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets