Space Admin loads slowly for large spaces

XMLWordPrintable

    • 2

      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.

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

              Created:
              Updated:
              Resolved: