Snap stats page timeouts

Bug #1691276 reported by Bret Barker
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
High
William Grant

Bug Description

Stats pages are timing out for snaps with large numbers of revisions, e.g. nextcloud snap:
  https://dashboard.snapcraft.io/dev/snaps/5207/stats/

Oops here w/query timings:
  https://oops.canonical.com/oops/?oopsid=OOPS-3e81ac927bb3404692a9fa1873fa0671

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

The stats are a big plus to snaps. Even more so for heavy users (e.g. Nextcloud). Any ETA on this?

Bret Barker (noise)
Changed in snapstore:
assignee: nobody → Celso Providelo (cprov)
status: New → Confirmed
importance: Undecided → High
William Grant (wgrant)
Changed in snapstore:
assignee: Celso Providelo (cprov) → William Grant (wgrant)
status: Confirmed → In Progress
William Grant (wgrant)
Changed in snapstore:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in snapstore:
status: Fix Committed → Fix Released
Revision history for this message
Bret Barker (noise) wrote :

While this is a great improvement for the vast majority of snaps, it's worth noting stats for the core snap still gets timeouts, or is very near the threshold.

Revision history for this message
William Grant (wgrant) wrote :

I think that's going to have to wait for the new stats service. I'm cheating by using index-only scans, but that doesn't change the fact that there are millions of core downloads that have to be processed multiple times. We need to persist aggregates, and doing that in SCA's DB at this point seems like a wast of time.

Revision history for this message
Bret Barker (noise) wrote :

Agreed William, just wanted to point it out for anyone who comes across this.

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.