mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
6bd775eb84
* fix: Batch document deletes when emptying trash Splits the final parentDocumentId clear and destroy in documentPermanentDeleter into chunks of 100 to keep the exclusive lock window on the documents table short, preventing concurrent web SELECTs from queueing behind a single large DELETE. * fix: Skip parentDocumentId clear for documents restored mid-flight Re-checks deletedAt in the database before clearing parentDocumentId on children, so a parent restored between the caller's query and now keeps its children attached.