On vocabularies with few hundreds or thousands of terms Orphaned Terms Deletion works few minutes. Usually it exceeds php max_execution_time. It makes this modules useless.

It's caused by very poor perfomance of function __delete_orphaned_terms_tax_term_count_entities().
I replaced it with replacement of D6 taxonomy_term_count_nodes() (https://drupal.org/node/602240) - and it works MUCH faster (less than 30 seconds on vocabulary with about 8000 terms)!

Comments

quotesbro’s picture

StatusFileSize
new4.34 KB
quotesbro’s picture

Status: Needs review » Needs work
StatusFileSize
new4.55 KB

Module taxonomy_entity_index can be used to count unpublished nodes.

quotesbro’s picture

StatusFileSize
new4.57 KB
quotesbro’s picture

Status: Needs work » Closed (works as designed)

I forgot that terms can be attached not to only nodes.

quotesbro’s picture