Skip to content
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

TP2000-1503-speed-up-auto-end-measures #1368

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

mattjamc
Copy link
Collaborator

@mattjamc mattjamc commented Dec 23, 2024

TP2000-1503-speed-up-auto-end-measures

Why

User testing of the auto end-dating measures in UAT found that the page times out with a 504 error. This does not happen locally but it can take about 15 seconds to load.

What

This PR moves the .effective_valid_between() part of the function to the end so that it is applied on the final smallest queryset. As this is the most time consuming bit of the query it reduces the time to load the page.

@mattjamc mattjamc changed the title Move effective valid between TP2000-1503-speed-up-auto-end-measures Dec 23, 2024
@mattjamc mattjamc marked this pull request as ready for review December 23, 2024 11:47
@mattjamc mattjamc requested a review from a team as a code owner December 23, 2024 11:47
Copy link
Collaborator

@CPrich905 CPrich905 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DWISOTT

@mattjamc mattjamc merged commit eaf7ae9 into master Dec 30, 2024
8 checks passed
@mattjamc mattjamc deleted the TP2000-1503-speed-up-auto-end-measures branch December 30, 2024 10:05
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