Closed (won't fix)
Project:
Hierarchical Select
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
13 May 2009 at 03:46 UTC
Updated:
27 Jul 2009 at 11:46 UTC
This module works fine for the most part. However, it is just so slow that I find I find I'm looking for another solution. It takes 2-6 seconds to load up the list of child taxonomy terms.
Comments
Comment #1
wim leersEither you've got a significant amount of terms, or your hierarchy is badly structured (say >100 items in a single level), or your server is badly configured/extremely slow, because it runs fine over here: http://wimleers.com/demo/hierarchical-select/taxonomy.
I know of companies using it for >30,000 terms so it scales just fine.
Please do proper research before making these assumptions/accusations.
Comment #2
OneTwoTait commentedThere are 30 parent terms with about 1-5 child-terms each. The server is a VPS that is configured specifically for Drupal. That is, php and MySQL are both optimized to make the site run faster.
Anybody can PM me to see the site if they want.
I don't know what "assumptions" you are referring to.
Comment #3
wim leersThe assumptions I meant: the fact that the module itself is slow by design, whereas it's more likely that you've got a bad setup.
So, if I understand you correctly, you've got a 2-level vocabulary, with 30 terms in the first level and 1-5 child terms in each level? That should be blindingly fast. At least as fast as the examples on my site. Especially if you've got a highly tuned VPS. Let's figure this out :)
How long do other pages on this web site take load?
Please enable developer mode to find out how long it takes to render the hierarchy. You can learn how to do that in API.txt, in the "Developer mode" section.
Comment #4
nick_vhAnd I'm a witness of seeing 30000 terms in hierarchical select work. The only issue is that if you have select - deepest term - with lot's of child terms it can get a bit slowly. But you can easily make a workaround for that by putting in top of the term list a term without children!
Comment #5
wim leersThanks for your comment, Nick_vh :)
Please get back to us, taite11, or we won't be able to help you.
Comment #6
OneTwoTait commentedIn the API.txt file it says "Next, go to Hierarchical Select's .module file and set the define
for the HS_DEVELOPER_MODE constant to TRUE." Does this mean change "define('HS_DEVELOPER_MODE', 0);" to "define('HS_DEVELOPER_MODE', TRUE);"?
I tried that with Devel installed and enabled and got the white screen on the add-node pages.
Comment #7
wim leersThen look in your logs to find out what caused this white screen. It'll be a PHP error.
Comment #8
coloryan commentedIt doesn't explain the error, but my menu was also a little slow. I increased my RAM last night, and that resolved the issue.
Comment #9
wim leersIt doesn't explain the error, but that's what PHP is like: it sucks to debug. You'd have to add a
print_r(debug_backtrace());just before the line where it crashed…Comment #10
OneTwoTait commentedI checked the log at admin/reports/dblog and didn't see any errors.
When the "0" is replaced with "TRUE" every page on the site gives the white page. So, then I restored the original file to check that log.
Comment #11
wim leersMaybe you've got timeouts... not sure what's happening here. How long does the average page on your Drupal site take to load?
Comment #12
thommyboy commentedHi there,
me too I'm using this module and really like it! But I'm expiriencing performance problems too. I run two websites
A) 3-level vocabulary, approx 30 terms on level 1 and 200 terms overall
This Site has approx 120 Nodes using this vocabulary and works pretty fast
B) 2-level vocabulary, 10 term on level 1 and for testing only ONE term on level 2 of one of the terms
This site has approx 800 Nodes using the vocabulary and is slow. When choosing the level 1 term that has another level
it takes approx 5 secs for the next level (containing 1 term!) to load
One additional comment- when I admin the vocabulary and use the "preview" inside the hierarchical select settings,
the level 2 for B) loads much faster (0.5secs).
Any idea?
Regards
Tom
Comment #13
wim leersHow long does it take to render the pages themselves? They must also take +- 5 seconds to load then. Because HS first reconstructs the entire form and then renders the part it needs. If HS is slow on the form and fast on the preview, then it's the form that is to blame.
You'll have to fix the performance of that form, then.