mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +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) {
|
||||
filter.startedAt = LessThan(req.query.lastStartedAt);
|
||||
}
|
||||
countFilter.select = ['id'];
|
||||
|
||||
const resultsPromise = Db.collections.Execution!.find({
|
||||
select: ['id', 'workflowData'],
|
||||
where: filter,
|
||||
order: {
|
||||
startedAt: "DESC",
|
||||
|
||||
Reference in New Issue
Block a user