This is step one for getting forums optimized.

Comments

david strauss’s picture

That was easy:

ALTER TABLE {term_data} DROP INDEX vid;
ALTER TABLE {term_data} ADD INDEX taxonomy_tree (vid, weight, name);

Now taxonomy_get_tree can run without a filesort.

moshe weitzman’s picture

if this is still valid, lets make a patch and get it in.

wim leers’s picture

Bump!

Let's get this in D6!

RobRoy’s picture

Have you seen my issue at http://drupal.org/node/106015 which would cache the tree? It seems complimentary and offers a huge performance boost, please review if you can!

catch’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of: http://drupal.org/node/164532