Closed Bug 877714 Opened 11 years ago Closed 10 years ago

Take a code walk along the API search/featured path

Categories

(Marketplace Graveyard :: Code Quality, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: robhudson, Unassigned)

References

Details

(Whiteboard: p=2)

Look for things we can optimize or cache.
Priority: -- → P2
Whiteboard: p=2
Assignee: nobody → amckay
Target Milestone: --- → 2013-06-27
I split out apps.search and apps.featured in graphite so we can see stats. apps.search has gotten faster, showing that apps.featured is the hog.
There are two main areas of interest:

https://github.com/mozilla/zamboni/blob/master/mkt/search/api.py#L172
https://github.com/mozilla/zamboni/blob/master/mkt/search/api.py#L175

With 1 featured app we get:

line 172: 86ms
line 175: 35ms

With 20 featured apps we get:

line 172: 321ms
line 175: 307ms
Cleaned up the first of those so its less O(n):

https://github.com/mozilla/zamboni/commit/30b8ca

Would like to take a look at the app dehydrate next.
Target Milestone: 2013-06-27 → 2013-07-04
Assignee: amckay → nobody
Target Milestone: 2013-07-04 → 2013-07-11
https://github.com/mozilla/zamboni/commit/94b8704 added caching to one of the lower featured calls that is doing a complex SQL query.
Target Milestone: 2013-07-11 → ---
We did some of that a while ago in other bugs, but the API endpoint is going away anyway because of the feed.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.