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
In MenuTreeStorage.php
// @todo We want to also check $original['has_children'] here, but that
// will be 0 even if there are children if those are hidden.
// has_children is really just the rendering hint. So, we either need
// to define another column (has_any_children), or do the extra query.
Question is - do we want to increase performance by removing query but add complexity by adding another extra column in the table?
Comments
Comment #1
Elijah LynnComment #2
dawehnerComment #3
xjmComment #4
pwolanin CreditAttribution: pwolanin commentedComment #5
mgiffordUnblocked.
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedmenuTreeStorage performance is showing up on recent flamegraphs. This would help.