Hi, This might have been discussed before but just so I understand:
The DocumentNodeStore.backgroundWrite goes through the heavy work of updating the lastRev for all pending changes and does so in a hierarchical-depth-first manner. Unfortunately, if the pending changes all come from separate commits (as does not sound so unlikely), the updates are sent in individual update calls to mongo (whenever the lastRev differs). Which, if there are many changes, results in many calls to mongo. What about replacing that mechanism using mongo's bulk functionality (eg initializeOrderedBulkOperation)? Is this for some reason not possible or already in the jira-queue (which ticket)? Cheers, Stefan -- http://api.mongodb.org/java/current/com/mongodb/DBCollection.html#initialize OrderedBulkOperation--
