Issue Bug Closed

#96356Performance LiveSearch for admin users

Stefan Froemken 12/15/21, 13:04 updated 10/04/22, 14:17

Description

Hello,

searching for any value in LiveSearch as Admin is very slow.

I found these lines of code which are very slow:

$mounts = $GLOBALS['BE_USER']->returnWebmounts();
foreach ($mounts as $pageId) {
    $pageList[] = $this->getAvailablePageIds($pageId, self::RECURSIVE_PAGE_LEVEL);
}

We have a pagetree with over 65.000 pages. As Admin user I can access each page of them. IMO there is no need to check webmounts and extract all pages from pages-tree. I think it would be easier to remove the Query-part against “pid”, if an admin uses the search.

I will create a patch for that.

Stefan

Reviews 2