Investigate accelerating / caching tagcloud computation
Bug #1302128 reported by
Tres Seaver
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Low
|
Chris Rossi |
Bug Description
The tag cloud views are infrequently accessed, but when they *are* invoked, they tend to evict "important" objects from the ZODB caches.
Figure out the feasibility of computing the underlying cloud less frequently (e.g., nightly, in an out-of-appserver process) and serve only using the cached counts.
Changed in karl3: | |
milestone: | m136 → m138 |
Changed in karl3: | |
importance: | Medium → Low |
Changed in karl3: | |
assignee: | Tres Seaver (tseaver) → Chris Rossi (chris-archimedeanco) |
milestone: | m138 → m139 |
Changed in karl3: | |
status: | New → In Progress |
tags: | added: r3.130 |
tags: |
added: r3.131 removed: r3.130 |
Changed in karl3: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
I've been staring at this. Essentially, the tag cloud is just a mapping of tag name to tag count. I think what I would probably do is add a data structure to Tags that stores mappings of tag name to tag count that are maintained live as tags are updated. I'd have one structure that kept the global counts and another that kept counts for each community. This gets us over having to have some kind of nightly count process, but still makes the information we need available and precomputed.