Be lazy about loading screenshots for apps

Bug #978005 reported by Anthony Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Apps Directory
Fix Released
Medium
Anthony Lenton

Bug Description

Screenshots for most applications (the ones from main+universe) are currently all retrieved from screenshots.ubuntu.com during the import_app_install_data command run.

This adds ~1 to ~3 seconds *per app* to the run time for this command. Having 30k apps in universe this means the command will take several hours to run. I believe we wouldn't even be able to import all five lucid - precise distros in a whole day.

It would be better if screenshots were like reviews: On the application details page there's a static link to the screenshots, and that's replaced via ajax with a carousel widget on page load. The screenshots themselves are on a separate page, that can be cached for several hours so that they're not reloaded for every request.

If it makes a difference, I think ideally screenshots would be loaded just *before* the reviews, as they appear above the screen fold.

Related branches

Changed in ubuntu-webcatalog:
status: New → Confirmed
importance: Undecided → Medium
Changed in ubuntu-webcatalog:
status: Confirmed → In Progress
assignee: nobody → Anthony Lenton (elachuni)
milestone: none → 12.04
Changed in ubuntu-webcatalog:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.