For spaces with thousands of pages, the Space Admin loads slowly. Page load performance decreases drastically in spaces with >5000 pages (in local testing, it was about a seven second load time).

      The editspace.action invokes the EditSpaceEntryAction.class, which makes a getPages() call:

      public class EditSpaceEntryAction extends AbstractEditSpaceAction
      {
          public List getAvailablePages()
          {
              if ((availablePages == null) && (getSpace() != null))
              {
                  availablePages = new ArrayList(pageManager.getPages(getSpace(), true));
                  Page blankPageAtTop = new Page();
                  blankPageAtTop.setTitle("");
                  availablePages.add(0, blankPageAtTop); // Give user the option not to select any home page
              }
              Collections.sort(availablePages);
      
              return availablePages;
          }
      
          public void setSpaceManager()
          {
          }
      }
      

      This is done to populate the set Home Page drop-down. The current approach does not scale well and an alternative means of populating that filed OR settings the Home Page would be ideal.

            [CONFSERVER-21575] Space Admin loads slowly for large spaces

            I tested this, generated 1000 pages, auto complete works well

            Steve Lancashire (Inactive) added a comment - - edited I tested this, generated 1000 pages, auto complete works well

            Tim Colson added a comment -

            A drop down works okay for spaces with maybe 20-30 pages, but after that it gets ugly. When there are 25,000+ pages a drop-down is crippling (we have two actual spaces that big). Autocomplete/search would be okay for big spaces, but a little painful for small spaces. Confluence could display different UI widgets based on the page count – assuming getting the space page count is a fast operation.

            Tim Colson added a comment - A drop down works okay for spaces with maybe 20-30 pages, but after that it gets ugly. When there are 25,000+ pages a drop-down is crippling (we have two actual spaces that big). Autocomplete/search would be okay for big spaces, but a little painful for small spaces. Confluence could display different UI widgets based on the page count – assuming getting the space page count is a fast operation.

            Matt Ryall added a comment -

            We should offer an autocomplete text field to select the home page, rather than a drop-down list of all pages in the space. An example of such a space-specific page title autocomplete can be seen on the "Known Location" tab of the move page dialog.

            Matt Ryall added a comment - We should offer an autocomplete text field to select the home page, rather than a drop-down list of all pages in the space. An example of such a space-specific page title autocomplete can be seen on the "Known Location" tab of the move page dialog.

            A patch was written for CSP-55398 (not publicly viewable) that will bypass the getPages() call but breaks the ability to set the home page. The workaround is details in this KB article:

            http://confluence.atlassian.com/display/CONFKB/Space+Admin+is+Slow+to+Load+on+Large+Spaces

            Adam Laskowski (Inactive) added a comment - A patch was written for CSP-55398 (not publicly viewable) that will bypass the getPages() call but breaks the ability to set the home page. The workaround is details in this KB article: http://confluence.atlassian.com/display/CONFKB/Space+Admin+is+Slow+to+Load+on+Large+Spaces

              drizzuto David Rizzuto
              alaskowski Adam Laskowski (Inactive)
              Affected customers:
              4 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: