Open AlexanderKharchenko opened 7 years ago
$ Node->getLevel() when using this method, a lot of queries to the database.
$ Node->getLevel()
When the whole tree, I replaced the $Node->getLevel() on $node->depth $Node->depth correctly return level?
$Node->getLevel()
$node->depth
$Node->depth
When using $ Node->getLevel() -> database queries 471
When using $Node->depth -> database queries 5
Very important criterion
$ Node->getLevel()
when using this method, a lot of queries to the database.When the whole tree, I replaced the
$Node->getLevel()
on$node->depth
$Node->depth
correctly return level?When using
$ Node->getLevel()
-> database queries 471When using
$Node->depth
-> database queries 5Very important criterion