[ 
https://issues.apache.org/jira/browse/OAK-877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688023#comment-13688023
 ] 

Michael Dürig commented on OAK-877:
-----------------------------------

This behaviour is caused by {{ChangeDispatcher}} keeping track of all local 
commit. Generating observation events will later diff the revision of each of 
those commits against the revision of the previous commit. We could optimise 
this by detecting sequences of subsequent local commits and only diff the 
revision of the latest against the revision of the earliest commit. 
                
> Generating observation events takes too long when intermediate save calls are 
> involved
> --------------------------------------------------------------------------------------
>
>                 Key: OAK-877
>                 URL: https://issues.apache.org/jira/browse/OAK-877
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>            Reporter: Michael Dürig
>         Attachments: 1_save.png, 2.save.png
>
>
> Creating observation events is much more expensive when a transaction is 
> broken down through intermediate save calls compared to only having a single 
> save call. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to