Improve performance of community tag portlet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Medium
|
Chris Rossi |
Bug Description
"""
I found your performance bottle neck. Not sure what to do about it yet, but it's the community tags portlet in the right sidebar of the community layout. well the call to tags.getFrequency() is taking 40-50 seconds on my local box. burns through a lot of CPU. possibly CPU bound rather than IO bound, but not positive. but would explain why ssd doesn't help.
looks like a possible O(n^2). the tagging stuff doesn't really contain an index for community. so if we do something like what we're doing in the community tags portlet, where we go:
tags.
It marshalls every tag in the db and checks the community. It's probably only fixable with some kind of index on community.
Changed in karl3: | |
assignee: | nobody → Chris Rossi (chris-archimedeanco) |
Changed in karl3: | |
status: | Confirmed → In Progress |
Changed in karl3: | |
milestone: | m44 → m999 |
assignee: | Tres Seaver (tseaver) → nobody |
FWIW, the slow bit isn't O(n^2), it's just O(n) where n is fairly large.