Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29306

Improve performance for move of big folders on MongoDB

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core MongoDB
    • Tags:
    • Sprint:
      nxFG 11.1.13, nxFG 11.3.1
    • Story Points:
      5

      Description

      When doing a move of a big folder on MongoDB, a lot of time is spent iterating on the recomputation of the ecm:ancestorIds field:

              at (iterator on the result of repository.getDescendants())
      	at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.updateAncestors(DBSTransactionState.java:465) ~[nuxeo-core-storage-dbs-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.move(DBSSession.java:898) ~[nuxeo-core-storage-dbs-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.move(AbstractSession.java:538) ~[nuxeo-core-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.automation.core.operations.document.MoveDocument.run(MoveDocument.java:54) ~[nuxeo-automation-core-10.10-HF25.jar:?]
      

      This could be optimized by using a dedicated MongoDB update using a pipeline operation.

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: