Skip to content

Improving query speed #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Improving query speed #122

merged 1 commit into from
Aug 29, 2024

Conversation

mael-chouteau
Copy link
Contributor

Adding conditions in order to not query entries that end before the calendar we are viewing (in the case of those without start dates), or start after the calendar that we are viewing (in the case of those that don't have due dates).
This improves the query time by a lot.
In my case, on version 1.9.9 going from 59sec to an average of 5.5sec.
And compared to the version 1.7.1 which was at 18sec.

Adding conditions in order to not query entries that end before the calendar we are viewing, or start after the calendar that we are viewing.
@mael-chouteau mael-chouteau mentioned this pull request Aug 27, 2024
@berti92
Copy link
Owner

berti92 commented Aug 29, 2024

Good idea. Thank you!

@berti92 berti92 merged commit 8550ba3 into berti92:master Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants