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