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

wim leers’s picture

Assigned: Unassigned » wim leers
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Either 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.

OneTwoTait’s picture

There 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.

wim leers’s picture

The 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.

nick_vh’s picture

And 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!

wim leers’s picture

Thanks for your comment, Nick_vh :)

Please get back to us, taite11, or we won't be able to help you.

OneTwoTait’s picture

In 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.

wim leers’s picture

Then look in your logs to find out what caused this white screen. It'll be a PHP error.

coloryan’s picture

It doesn't explain the error, but my menu was also a little slow. I increased my RAM last night, and that resolved the issue.

wim leers’s picture

It 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…

OneTwoTait’s picture

I 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.

wim leers’s picture

Maybe you've got timeouts... not sure what's happening here. How long does the average page on your Drupal site take to load?

thommyboy’s picture

Hi 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

wim leers’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

How 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.