<?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 Poor performance during document deletion in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86065#M58125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A colleague of mine (who also wrote this article) did some trials on our out-of-the-box Alfresco 2.0 community with MySQL on OpenSuse to see how long it would take to copy and paste a complex file structure from drive to drive. The file structure chosen consisted of 296 files within 29 folders, a total of 24.3Â&amp;nbsp;MB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The transfer was done between &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; - a local drive on my desktop machine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; X: - a conventional shared drive on the local area network&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; V: - an Alfresco/CIFS 'virtual drive' on the local area network&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most transfers were repeated four times and averaged, in order to smooth out the peaks and troughs of network performance. Each transfer was done by copy and paste to make sure that data was really being transferred, even where it wasn't necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;from D:&amp;nbsp;&amp;nbsp;&amp;nbsp;from X:&amp;nbsp;&amp;nbsp;&amp;nbsp;from V:&lt;BR /&gt;to D:&amp;nbsp;&amp;nbsp;&amp;nbsp;3 s&amp;nbsp;&amp;nbsp;&amp;nbsp;7 s&amp;nbsp;&amp;nbsp;&amp;nbsp;25 s&lt;BR /&gt;to X:&amp;nbsp;&amp;nbsp;&amp;nbsp;16 s&amp;nbsp;&amp;nbsp;&amp;nbsp;16 s&amp;nbsp;&amp;nbsp;&amp;nbsp;41 s&lt;BR /&gt;to V:&amp;nbsp;&amp;nbsp;&amp;nbsp;116 s&amp;nbsp;&amp;nbsp;&amp;nbsp;134 s&amp;nbsp;&amp;nbsp;&amp;nbsp;147 s&lt;BR /&gt;delete&amp;nbsp;&amp;nbsp;&amp;nbsp;3 s&amp;nbsp;&amp;nbsp;&amp;nbsp;3 s&amp;nbsp;&amp;nbsp;&amp;nbsp;1505 s&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfers to and from the V: drive were slower than with a conventional file system but this is generally acceptable, considering that these are transfers involving a Document Management system and the number of files involved. However, the time taken to delete from the V: drive, over 25 minutes(!), was totally unacceptable. Windows would continually report how much time was left but generally underestimated by a factor of about four. Most of the time, the system didn't seem to be doing anything at all and I think that that most users would conclude that the system had hung.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;He repeated the same transfers but using a much simpler file structure of only 6 large files in 1 folder, but with a similar overall size of 24.0Â&amp;nbsp;MB. This was to illustrate that the most important factor in transferring file structures is the number of files, rather than the overall file size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;from D:&amp;nbsp;&amp;nbsp;&amp;nbsp;from X:&amp;nbsp;&amp;nbsp;&amp;nbsp;from V:&lt;BR /&gt;to D:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;1 s&amp;nbsp;&amp;nbsp;&amp;nbsp;3 s&amp;nbsp;&amp;nbsp;&amp;nbsp;4 s&lt;BR /&gt;to X:&amp;nbsp;&amp;nbsp;&amp;nbsp;4 s&amp;nbsp;&amp;nbsp;&amp;nbsp;6 s&amp;nbsp;&amp;nbsp;&amp;nbsp;6 s&lt;BR /&gt;to V:&amp;nbsp;&amp;nbsp;&amp;nbsp;8 s&amp;nbsp;&amp;nbsp;&amp;nbsp;7 s&amp;nbsp;&amp;nbsp;&amp;nbsp;12 s&lt;BR /&gt;delete&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;1 s&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;1 s&amp;nbsp;&amp;nbsp;&amp;nbsp;32 s&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This time the performance of the V: drive is much closer to that of a conventional drive and we don't think that most users would notice a difference most of the time. The exception again is deletion, which is still unacceptably long at about 5 seconds per file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A possible work-around for the deletion problem might be to cut and paste, or drag-and-drop file structures to a dedicated 'deletion' folder on the V: drive. The files can then be deleted from there in the background. This isn't a pretty solution and not one that you can expect normal users to want to use. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question: Why does deletion take so long? Deleting the file in the filestore and its reference in the database should be fast.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tx&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frank&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 21:10:30 GMT</pubDate>
    <dc:creator>fschnell</dc:creator>
    <dc:date>2007-04-16T21:10:30Z</dc:date>
    <item>
      <title>Poor performance during document deletion</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86065#M58125</link>
      <description>A colleague of mine (who also wrote this article) did some trials on our out-of-the-box Alfresco 2.0 community with MySQL on OpenSuse to see how long it would take to copy and paste a complex file structure from drive to drive. The file structure chosen consisted of 296 files within 29 folders, a to</description>
      <pubDate>Mon, 16 Apr 2007 21:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86065#M58125</guid>
      <dc:creator>fschnell</dc:creator>
      <dc:date>2007-04-16T21:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance during document deletion</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86066#M58126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Files and folders are, by default, archived.&amp;nbsp; So the delete is not only moving the nodes, but is ensuring that all association to and from the nodes are archived as well.&amp;nbsp; This is an expensive process, but can be switched off in the model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is off, then the process still has to walk the tree to delete the nodes.&amp;nbsp; The reason why we don't do this in the background is that it is possible that the delete actually violates some integrity constraint and should therefore be disallowed.&amp;nbsp; Each node in the tree has to be evaluated to against the model constraints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are solutions to these problems, ofcourse.&amp;nbsp; We could preserve associations to deleted nodes and avoid displaying them in the clients, for instance.&amp;nbsp; This would allow us to just move and archive the top-level node.&amp;nbsp; Complete deletion can do something similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:44:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86066#M58126</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-04-17T09:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Poor performance during document deletion</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86067#M58127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you repeat the same tests using the latest code on from our SVN?&amp;nbsp; With such a long-running transaction, you'll need the support to keep the memory sizes in check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 09:50:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/poor-performance-during-document-deletion/m-p/86067#M58127</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-04-17T09:50:22Z</dc:date>
    </item>
  </channel>
</rss>

