Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8975

content templates take a long time on huge folders

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.5.0-HF04, 5.6-RC1, 5.6
    • Component/s: Core

      Description

      When starting Nuxeo and there's a big folder around the root, it may spend a long time in:

      at java.util.LinkedList.indexOf(LinkedList.java:602)
              at java.util.LinkedList.contains(LinkedList.java:315)
              at org.nuxeo.ecm.core.storage.sql.Selection.addExisting(Selection.java:159)
              at org.nuxeo.ecm.core.storage.sql.SelectionContext.recordExisting(SelectionContext.java:133)
              at org.nuxeo.ecm.core.storage.sql.PersistenceContext.getFragmentFromFetchedRow(PersistenceContext.java:688)
              at org.nuxeo.ecm.core.storage.sql.PersistenceContext.getFragmentsFromFetchedRows(PersistenceContext.java:630)
              at org.nuxeo.ecm.core.storage.sql.SelectionContext.getSelectionFragments(SelectionContext.java:202)
              at org.nuxeo.ecm.core.storage.sql.PersistenceContext.getChildren(PersistenceContext.java:1250)
              at org.nuxeo.ecm.core.storage.sql.SessionImpl.getChildren(SessionImpl.java:952)
              at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.getChildren(ConnectionImpl.java:215)
              at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getChildren(SQLSession.java:756)
              at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getChildren(SQLDocumentLive.java:516)
              at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.getChildren(SQLDocumentLive.java:508)
              at org.nuxeo.ecm.core.api.AbstractSession.getChildren(AbstractSession.java:1088)
              at org.nuxeo.ecm.core.api.AbstractSession.getChildren(AbstractSession.java:1055)
              at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory.shouldCreateContent(SimpleTemplateBasedRootFactory.java:68)
              at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory.createContentStructure(SimpleTemplateBasedRootFactory.java:39)
              at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executeFactoryForType(ContentTemplateServiceImpl.java:179)
              at org.nuxeo.ecm.platform.content.template.listener.RepositoryInitializationListener.doInitializeRepository(RepositoryInitializationListener.java:41)
              at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:92)
      

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: