<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Taking too long to move documents in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/taking-too-long-to-move-documents/m-p/266425#M219555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets see if anyone can help us here with an issue we are fiding. We have developed a new wizzard in an Alfresco 3.3 version. The purpose of this wizard is to get all the jpg documents in a space called "Inbound" and start showing them in a new customized screen that shows the document in the left section of the screen and the metadata linked to it (aspects and types) at the right of the screen. User should compare the data of the document, and introduce it manually in the metadata fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once this data entry is done, user should press a button called "Accept" and the document should be moved from "Inbound" to another space called "Approved".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have used this in a Windows XP machine with MySQL 5.1, 3 GB RAM&amp;nbsp; and Alfresco 3.3 and works totally fine, however now we need to move this configuration to a Linux Suse Machine also with MySQL5.1, 3 GB RAM and also Alfresco 3.3….however this last step of moving the document from the "Inbound" space to the "Approved" space takes much much longer…. about 3 minutes more per document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also just as a note we use Java 1.6 with a heap size of 1500 MB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alfresco JVM - v1.6.0_20-b02; maximum heap size 1484,813MB&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically the steps for the movement are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) Search for the documents in the "Approved" space to see if there is already a document with the same name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a1) If there is already a document with the same name, move document from "Inbound" but adding date to the document name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) If search is null, move the document from "Inbound" to "Approved".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I have to say that this takes 3 mins long even if the destination space "approved" is empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here I attacht the part of the code we have used to perform this movement of the documents once approved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public void moveDocument(){&lt;BR /&gt; &amp;nbsp; &amp;nbsp; NodeRef acceptedRef = spaceAprobed();&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &lt;BR /&gt;// &amp;nbsp; &amp;nbsp; List&amp;lt;Node&amp;gt; nodes = this.browseBean.getContent();&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; // Write the node in the space&lt;BR /&gt; &amp;nbsp; &amp;nbsp; try {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;String nameFile = editableNode.getName(); &lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;NodeRef nodeExist = this.getFileFolderService().searchSimple(acceptedRef, nameFile);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(nodeExist != null){&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; String nameFile = nameFile.replace(".jpg", getTime_Custom() + ".jpg");&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.fileFolderService.rename(editableNode.getNodeRef(), nameFile);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;fileFolderService.move(editableNode.getNodeRef(),&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;acceptedRef, null);&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &lt;BR /&gt; &amp;nbsp; &amp;nbsp; &lt;BR /&gt; &amp;nbsp; &amp;nbsp; } catch (FileExistsException e) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();&lt;BR /&gt; &amp;nbsp; &amp;nbsp; } catch (org.alfresco.service.cmr.model.FileNotFoundException e) {&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.printStackTrace();&lt;BR /&gt; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;// &amp;nbsp; return nextNode(nodes);&lt;BR /&gt;&lt;BR /&gt; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas of what could be producing this delay?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2011 08:27:54 GMT</pubDate>
    <dc:creator>jlabuelo</dc:creator>
    <dc:date>2011-03-01T08:27:54Z</dc:date>
    <item>
      <title>Taking too long to move documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/taking-too-long-to-move-documents/m-p/266425#M219555</link>
      <description>Hi allLets see if anyone can help us here with an issue we are fiding. We have developed a new wizzard in an Alfresco 3.3 version. The purpose of this wizard is to get all the jpg documents in a space called "Inbound" and start showing them in a new customized screen that shows the document in the l</description>
      <pubDate>Tue, 01 Mar 2011 08:27:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/taking-too-long-to-move-documents/m-p/266425#M219555</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2011-03-01T08:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too long to move documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/taking-too-long-to-move-documents/m-p/266426#M219556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;no one has an idea of what could be wrong with this document movement from an space to another. It is strange as it happens only between these two spaces and using the code (which I think is ok), then using the normal cut/paste functionality using the alfresco UI works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be because we are using Linux Suse in 64-bit mode???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion will be very appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 09:05:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/taking-too-long-to-move-documents/m-p/266426#M219556</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2011-03-04T09:05:13Z</dc:date>
    </item>
  </channel>
</rss>

