Closed (fixed)
Project:
Glossary
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
30 Nov 2007 at 16:34 UTC
Updated:
15 Dec 2007 at 19:52 UTC
Jump to comment: Most recent file
Function "theme_glossary_overview_item" uses the "taxonomy_term_count_nodes" function, which is known to be a potential performance bottleneck. The point of this call is merely to know if there is a detailed description (full) node supplied for the term. I believe it would be much quicker to simply run a COUNT query on the term_node table to see if any nodes are tagged with the term.
The supplied patch does this.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | glossary12.txt | 697 bytes | nancydru |
| glossary12.txt | 650 bytes | nancydru |
Comments
Comment #1
nancydruComment #2
moshe weitzman commentedyou forgot status=1 in the node table. right?
Comment #3
nancydruI was trying to keep it very simple and fast. Of course I can join the node table to check that. I wonder if it makes a difference to anyone.
Comment #4
nancydruComment #5
nancydruComment #6
nancydruCommitted
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.