Closed Bug 1211692 Opened 9 years ago Closed 9 years ago

Wheel of death when adding theme to a collection

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: amyt, Assigned: cgrebs)

Details

http://imgur.com/AqaWVJP

First it hangs when you click Add to Collection, and when it loads and you click on the collection you want to add it too, the wheel just keeps spinning.

The themes eventually make it into the collection, but the wheel still spins.
With the developer console I can see this is horribly slow:

https://www.dropbox.com/s/oynbzjosya2gcas/Screenshot%202015-10-05%2015.51.17.png?dl=0

Something looks amiss there, 5037 ms the first call, time out at 120,049 ms the second call.
Also, when trying to make an addon search (from Collection's Add-on tab) after the same chars twice, no addons are listed, and the loading wheel is still "working".
Please see the screencast: http://screencast.com/t/jqcqRyXWf5 and let me know if another issue should be logged.
Verified on AMO-prod FF41(Win 7).
Assignee: nobody → cg
Assignee: cg → cgrebs
Status: NEW → ASSIGNED
Commit pushed to master at https://github.com/mozilla/olympia

https://github.com/mozilla/olympia/commit/75d321a47f95f9c5ac079914a8f06d80cd050d95
Improve collections ajax list performance. (bug 1211692)

This uses a simple extra query to check if the addon
exists in a collection or not.

This avoids the for-loop and thus n queries on a (possibly) huge
list of addon ids.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
The issue from comment #2 is still reproducing: "wheel of death" is present if the same search chars are typed twice.
Please see the screencast: http://screencast.com/t/HeTLk02Cypw
Should I file another bug?
Flags: needinfo?(cgrebs)
(In reply to ValentinaP from comment #5)
> The issue from comment #2 is still reproducing: "wheel of death" is present
> if the same search chars are typed twice.
> Please see the screencast: http://screencast.com/t/HeTLk02Cypw
> Should I file another bug?

Yes its a different issue.
based on comment #6 and comment #5 I'll mark this bug verified.
Postfix screencast: http://screencast.com/t/vBuwpLvK0
Closing bug.
Status: RESOLVED → VERIFIED
Flags: needinfo?(cgrebs)
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.