ProductReleaseFileMixin.latest_release_with_download_files is inefficient for projects with many releases
Bug #1892003 reported by
Colin Watson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned |
Bug Description
See: https:/
There are possibly multiple problems here, but one that jumps out at me is:
@cachedproperty
def latest_
"""Return the latest release with download files."""
for series in self.sorted_
for release in series.releases:
if len(list(
return None
This needs to be replaced with a more targeted query.
To post a comment you must log in.