Related internal issue : https://git.xwikisas.com/xwiki-sas-cpt/ulo/-/issues/1
When deleting a document containing many tasks, the deletion job will take a lot of time, and will also significantly increase the memory consumption of XWiki.
My understanding comes from the fact that, when deleting a task document, the task manager app tries to update the XDOM of every document referring to this task. This will lead to creating a lot of new new versions of this document (which may be in the list of pages to delete), which will slow down the process and trigger other listeners.
Marking as blocker because currently, this causes out of memory exceptions on XWiki instances.
Related internal issue : https://git.xwikisas.com/xwiki-sas-cpt/ulo/-/issues/1
When deleting a document containing many tasks, the deletion job will take a lot of time, and will also significantly increase the memory consumption of XWiki.
My understanding comes from the fact that, when deleting a task document, the task manager app tries to update the XDOM of every document referring to this task. This will lead to creating a lot of new new versions of this document (which may be in the list of pages to delete), which will slow down the process and trigger other listeners.
Marking as blocker because currently, this causes out of memory exceptions on XWiki instances.