mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
refactor: Reduce payload size when fetching workflows to prevent memory issues (#5293)
This commit is contained in:
parent
1d85e232e5
commit
c7e9a4375f
|
@ -223,8 +223,19 @@ export class ExecutionsService {
|
|||
});
|
||||
}
|
||||
|
||||
let query = Db.collections.Execution.createQueryBuilder()
|
||||
.select()
|
||||
// Omit `data` from the Execution since it is the largest and not necesary for the list.
|
||||
let query = Db.collections.Execution.createQueryBuilder('execution')
|
||||
.select([
|
||||
'execution.id',
|
||||
'execution.finished',
|
||||
'execution.mode',
|
||||
'execution.retryOf',
|
||||
'execution.retrySuccessId',
|
||||
'execution.waitTill',
|
||||
'execution.startedAt',
|
||||
'execution.stoppedAt',
|
||||
'execution.workflowData',
|
||||
])
|
||||
.orderBy('id', 'DESC')
|
||||
.take(limit)
|
||||
.where(findWhere);
|
||||
|
|
Loading…
Reference in a new issue