Hi all,

I have to migrate more than 300,000 documents from a custom ECM to Nuxeo EP. I 
needed to develop a client application to do the work. It looks to me that 
class SampleApplication from nuxeo-api-sample was the thing I needed. So I 
started my own class to create first the folders tree (I have to create more 
than 600 folders on 5 levels). here is the (pseudo) code I used to create them :

RepositoryManager repositoryMgr = Framework.getService(RepositoryManager.class);
Repository repository = repositoryMgr.getRepository(repName);
Framework.login("Administrator", "Administrator");
CoreSession remote = repository.open();

// repeat 600 times ...
{
  DocumentModel dm = new DocumentModelImpl(parentDocModel, name, "Folder");
  remote.createDocument(dm);
}
remote.save();

I have 3 problems : 
1- it took more than 1 hour to create the 600 folders !
2- I was not able to browse the newly created folders during the creation 
procedure.
3- At the end of the procedure java.exe was using more than 1 GB.

I am very worried about the performance, 1 hour for 600 folders, it's going to 
take many hours to create 300,000 documents.
Maybe I am doing something wrong, or I forgot something, or I am not using a 
good way ti import files in Nuxeo EP.

Can someone give me some help ?

Kr.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to