Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21575

Space Admin loads slowly for large spaces

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              drizzuto David Rizzuto
              alaskowski Adam Laskowski (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: