-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add support for successful build prefetch #11613
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
Conversation
We use both latest build and latest successful build in the project listing template.
This dropped the query count on the project listing page from 85 to 27 for me. |
if hasattr(self, self.LATEST_SUCCESSFUL_BUILD_CACHE): | ||
if build_successful := getattr(self, self.LATEST_SUCCESSFUL_BUILD_CACHE): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same feedback about not needing the first if
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted on #11616 but hasattr
does indeed seem needed as hasattr() == False
is what signals that prefetching is not in use and the normal method query can be run.
Merging to go out today, but there are some comments that need to be addressed. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This reverts commit a6e1fde.
This reverts commit a6e1fde.
We use both latest build and latest successful build in the project
listing template.