Too much results #3240
-
Hi everyone, I am experiencing slow perf with tasks plugin. i understood that I have to make a querry which is not returning a great number of tasks. not done hide task count |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
First, let's understand the problem, and its scale:
overdue: Add this line:
scheduled Today: Add this line:
Another thing you can do is to add a limit - I recognise that by 'group by function' line, and the original author included:
As the purpose was to get a manageable list of tasks... |
Beta Was this translation helpful? Give feedback.
-
Thanks ! Yes that's 844 tasks for now... What if I want to limit only the groups "upcoming" "beyon 7 days" and "no date" ? |
Beta Was this translation helpful? Give feedback.
-
ok thanks you are right... 30 tasks is enough !! |
Beta Was this translation helpful? Give feedback.
-
Hi, do you have the code if I want to remove "beyond seven days" and "no date" categories ? I don't need them. (perhaps also "upcoming" categorie, so that the plugin could be as fast as possible.) I don't understand well this code I took somewhere on this forum... : group by function task.happens.moment? (task.due.moment?.isBefore(moment(), 'day') ? task.due.format("[%%0%% |
Beta Was this translation helpful? Give feedback.
-
Your modifications is way much comprehensive for me ! |
Beta Was this translation helpful? Give feedback.
Yes, 844 tasks is way too many for reasonable performance.
I recommend going back to your original query above, and then adding something like:
That should give you plenty of tasks to chose to work on.