- Issue created by @alexpott
- π¬π§United Kingdom alexpott πͺπΊπ
I've tested this on a project with thousand of nodes and paragraphs and many many revisions - some nodes with over 100! And it completes the bulk load of the entity_usage table much much quicker. Especially when combined with https://www.drupal.org/project/entity_lru_cache β which fixes out-of-control memory usage due to loading entities. There is still much that can be improved in follow-ups. For example:
- process entities in parallel using child processes
- Not recalculate the usage data if the previous revision and current revision have not changed (this could benefit runtime entity saving too if we were smart)
I need to confirm we have test coverage of all the code before we proceed in actually merging this.
- First commit to issue fork.
-
marcoscano β
committed 86625346 on 8.x-2.x authored by
alexpott β
Issue #3499590 by alexpott, marcoscano: Add the ability to bulk insert...
-
marcoscano β
committed 86625346 on 8.x-2.x authored by
alexpott β
- πͺπΈSpain marcoscano Barcelona, Spain
Nice work! Thanks for helping!
I have opened π Allow users to clear the bulk inserting state flag on the UI Active as a follow-up so we can add an option to clear the state flag on the UI, but that isn't a huge deal IMO.
Automatically closed - issue fixed for 2 weeks with no activity.