Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12494

Search Application is using getSpaces() for Database Search

    XMLWordPrintable

Details

    • Medium

    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
      ...
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 4 hours
                4h