mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
perf(core): Skip unneeded calls on every pruning cycle (#7260)
This commit is contained in:
parent
0824800dff
commit
db01164ce1
|
@ -521,6 +521,11 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
|
|||
})
|
||||
).map(({ id }) => id);
|
||||
|
||||
if (executionIds.length === 0) {
|
||||
this.logger.debug('Found no executions to hard-delete from database');
|
||||
return;
|
||||
}
|
||||
|
||||
await this.binaryDataService.deleteManyByExecutionIds(executionIds);
|
||||
|
||||
this.logger.debug(`Hard-deleting ${executionIds.length} executions from database`, {
|
||||
|
|
Loading…
Reference in a new issue