mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
125 stars 41 forks source link

Admin tools: Slow user profile detail page #2011

Closed wagnerand closed 1 month ago

wagnerand commented 4 months ago

Opening admin/models/users/userprofile/<ID>/change/ (GET request, not changing the instance) is quite slow on prod, even profiles with very few related data takes 7 seconds to load.

Quick feedback from diox over slack:

"...I see duplicated/useless queries ...(... I don't see assertNumQueries tests for it)"

┆Issue is synchronized with this Jira Task

KevinMind commented 3 months ago

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-792

alexandruschek commented 1 month ago

Hello,

I checked this admin/models/users/userprofile//change/ on DEV and STAGE ENV. I used 15 profiles for each env: Timings were between 295 ms and 687 ms (on both env's only one case was at 600 ms, did not notice anything out of the ordinary on the profile)

Marking this as verified fix. Thank you!