fix(core): Reduce memory consumption on BinaryDataManager.init (#6633)

fix(core): Reduce memory consumption on BinaryDataManager.init

When there are a few thousand binary data file to delete, the `deleteMarkedFiles` and `deleteMarkedPersistedFiles` methods need a lot of memory to process these files, irrespective of if these files have any data or not.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-12 10:08:29 +02:00
committed by GitHub
parent 180ab8d7c2
commit 329d22f5d1
5 changed files with 72 additions and 81 deletions

View File

@@ -178,9 +178,9 @@ export class BinaryDataManager {
}
}
async deleteBinaryDataByExecutionId(executionId: string): Promise<void> {
async deleteBinaryDataByExecutionIds(executionIds: string[]): Promise<void> {
if (this.managers[this.binaryDataMode]) {
await this.managers[this.binaryDataMode].deleteBinaryDataByExecutionId(executionId);
await this.managers[this.binaryDataMode].deleteBinaryDataByExecutionIds(executionIds);
}
}