[ https://issues.apache.org/jira/browse/OAK-3559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989631#comment-14989631 ]
Marcel Reutegger commented on OAK-3559: --------------------------------------- In my view it would make the DS contract simpler and also simplify the Commit class, which is already complex. So, my preference is indeed a DS which does its best to create or update the documents as requested. I think it should only fail with an exception when something goes wrong communicating with MongoDB. > Bulk document updates > --------------------- > > Key: OAK-3559 > URL: https://issues.apache.org/jira/browse/OAK-3559 > Project: Jackrabbit Oak > Issue Type: Sub-task > Components: core, documentmk, mongomk > Reporter: Tomek Rękawek > Fix For: 1.4 > > > The {{DocumentStore#createOrUpdate(Collection, UpdateOp)}} method is invoked > in a loop in the {{Commit#applyToDocumentStore()}}, once for each changed > node. Investigate if it's possible to implement a batch version of the > createOrUpdate method, using the MongoDB [Bulk > API|https://docs.mongodb.org/manual/reference/method/Bulk/#Bulk]. It should > return all documents before they are modified, so the Commit class can > discover conflicts (if they are any). -- This message was sent by Atlassian JIRA (v6.3.4#6332)