mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Select only the data we need to speed up requests
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user