Details
-
Improvement
-
Resolution: Fixed
-
Major
-
7.2-milestone-3
Description
DatabaseSearch is using getSpaces() which is not scalable with a large number of spaces:
## --------------- ## Space filtering ## --------------- #set($spaces = $xwiki.spaces) ... #foreach($space in $spaces) #if (!$blacklistedSpaces.contains($space) && $xwiki.hasAccessLevel('view', "${space}.DocumentReservedForInternalXWikiUsage${mathtool.random(0, 999)}")) #spaceoption($space $selectedSpace) #end #end ...