Improve efficiency of ParentEntityRevisionUpdater::moveChildren
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #2897695. --> Reported by: [acbramley](https://www.drupal.org/user/1036766) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Our site is struggling to save a node that has 1600+ children due to ParentEntityRevisionUpdater::moveChildren </p> <p><img src="https://www.drupal.org/files/issues/Screen%20Shot%202017-07-27%20at%208.31.31%20AM.png" alt="Transaction log" width="500px"></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Swap moveSubTreeBelow calls with a single call to swap the parent as per <a href="https://github.com/previousnext/nested-set/issues/18">https://github.com/previousnext/nested-set/issues/18</a></p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p><del>Agree</del><br> Test<br> Code</p>
issue