Possible performance issue when getting site siblings
When you request the siblings of a site (e.g. nextSibling()
or previousSiblings(n)
) all of the parents children (meaning all siblings) IDs are queried and then iterated through until the current site is reached. After that the previous/next site objects are instantiated.
When there are a lot of childrens the complete iteration through all those sites might cause performance problems.
See https://dev.quiqqer.com/quiqqer/quiqqer/blob/master/lib/QUI/Projects/Site.php#L920