mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
⚡ Select only the data we need to speed up requests
This commit is contained in:
parent
9022ca0923
commit
f1f2deb1d4
|
@ -724,8 +724,10 @@ class App {
|
|||
if (req.query.lastStartedAt) {
|
||||
filter.startedAt = LessThan(req.query.lastStartedAt);
|
||||
}
|
||||
countFilter.select = ['id'];
|
||||
|
||||
const resultsPromise = Db.collections.Execution!.find({
|
||||
select: ['id', 'workflowData'],
|
||||
where: filter,
|
||||
order: {
|
||||
startedAt: "DESC",
|
||||
|
|
Loading…
Reference in a new issue