Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
shs currently loads the entire taxonomy tree of a vocabulary with $load_terms = TRUE, which isn't fun when a vocabulary is very large.
Also full terms are loaded via taxonomy_get_children() check if they have any children, whereas we could just do a SELECT 1 ... LIMIT(0, 1) query there.
Proposed resolution
Only use $load_terms = TRUE if i18n_taxonomy or entity_translation modules are installed.
Add a helper to check if a term has any children that doesn't load anything.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | shs-2673822.patch | 1.74 KB | catch |
Comments
Comment #2
catchComment #3
markhalliwellComment #5
stBorchertThanks for the work.
Seems, I really need to make a new release ... :/