mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -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) {
|
if (req.query.lastStartedAt) {
|
||||||
filter.startedAt = LessThan(req.query.lastStartedAt);
|
filter.startedAt = LessThan(req.query.lastStartedAt);
|
||||||
}
|
}
|
||||||
|
countFilter.select = ['id'];
|
||||||
|
|
||||||
const resultsPromise = Db.collections.Execution!.find({
|
const resultsPromise = Db.collections.Execution!.find({
|
||||||
|
select: ['id', 'workflowData'],
|
||||||
where: filter,
|
where: filter,
|
||||||
order: {
|
order: {
|
||||||
startedAt: "DESC",
|
startedAt: "DESC",
|
||||||
|
|
Loading…
Reference in a new issue