-
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
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.