mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
perf(core): Skip unneeded calls on every pruning cycle (#7260)
This commit is contained in:
@@ -521,6 +521,11 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
|
|||||||
})
|
})
|
||||||
).map(({ id }) => id);
|
).map(({ id }) => id);
|
||||||
|
|
||||||
|
if (executionIds.length === 0) {
|
||||||
|
this.logger.debug('Found no executions to hard-delete from database');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await this.binaryDataService.deleteManyByExecutionIds(executionIds);
|
await this.binaryDataService.deleteManyByExecutionIds(executionIds);
|
||||||
|
|
||||||
this.logger.debug(`Hard-deleting ${executionIds.length} executions from database`, {
|
this.logger.debug(`Hard-deleting ${executionIds.length} executions from database`, {
|
||||||
|
|||||||
Reference in New Issue
Block a user