mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -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);
|
).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`, {
|
||||||
|
|
Loading…
Reference in a new issue