AnsweredAssumed Answered

Too much time versioning data in Alfresco 3.4d

Question asked by danielo on Apr 5, 2011
Latest reply on Apr 6, 2011 by danielo

I'm trying to update a file of 2Mb in Alfresco 3.4d and it takes over 4 minutes. I´m using the embedded mysql and the libraries i'm using are:


My code is as follows and the last line of code is the one that gets blocked.

private void createStore(final String sPathTemp, final String sName,
         final String sDescripcion) throws Exception {
      // Creamos la referencia del nodo padre, donde se añadirá el contenido
      // En este caso el nodo padre es company_home
      final ParentReference prHomeParent = new ParentReference(sStore, null,
            sPathTemp, Constants.ASSOC_CONTAINS, null);
      // Asignamos un nombre para el nodo que vamos a crea en company_home
      prHomeParent.setChildName("cm:" + sName);
      // Comienza la construcción de nodo
      NamedValue[] nmContentProps = new NamedValue[1];
      nmContentProps[0] = Utils.createNamedValue(Constants.PROP_NAME, sName);
      final CMLCreate create = new CMLCreate("1", prHomeParent, null, null,
            null, Constants.TYPE_FOLDER, nmContentProps);
      // Añadimos aspectos al nodo
      NamedValue[] nmTitledProps = new NamedValue[2];
      nmTitledProps[0] = Utils.createNamedValue(Constants.PROP_TITLE, sName);
      nmTitledProps[1] = Utils.createNamedValue(Constants.PROP_DESCRIPTION,
      final CMLAddAspect addAspect = new CMLAddAspect(
            Constants.ASPECT_TITLED, nmTitledProps, null, "1");
      // Contruimos CML Block, con el nodo y sus aspectos
      final CML cCml = new CML();
      cCml.setCreate(new CMLCreate[] { create });
      cCml.setAddAspect(new CMLAddAspect[] { addAspect });
      // Creamos y recuperamos el contenido vía Repository Web Service

Thanks in advance,