<?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 Re: Bulk uploading using web scripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261704#M214834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem with adding a new job every minute is that if each job takes longer than a minute you will eventually have a problem.&amp;nbsp; You may also have contention between the multiple jobs so your throughput drops.&amp;nbsp; However some degree of parallel processing is essential for the highest throughput.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the traffic tends to even out then this may not be a problem.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I were building it it I'd go for a single multi-threaded process or consider some sort of "throttle" somwhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2012 11:38:12 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2012-02-13T11:38:12Z</dc:date>
    <item>
      <title>Bulk uploading using web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261702#M214832</link>
      <description>Hi , I have written a web script which gets called each minute (cron job). That script starts uploading files from the sub-folder of one of my defined directory, each sub-folder contains around 2000 files to process. Now, as the script is being called automatically after each minute despite of wheth</description>
      <pubDate>Fri, 10 Feb 2012 10:45:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261702#M214832</guid>
      <dc:creator>mrsaqib</dc:creator>
      <dc:date>2012-02-10T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk uploading using web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261703#M214833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suggest to work on a transactional environment on WebScripts, that is by default if you set the value of the property "transaction" (in the descriptor file) to "required" or "requiresnew".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you would like to work in a similar way of Java threads you could set "requiresnew" and the Spring context will create a new transaction for each WebScript call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember that if you set the value of the property "transaction" to "none" this means that you are working without any transactional support, this means that you could corrupt the repository with some critical operations. But it could be useful this setting if you need to explicitly manage the transactions using the TransactionService of Alfresco deciding when the container must execute a rollback of all the operations. This is possible only using the Java API of Alfresco (Foundation Services API).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default WebScripts are transactional (if the transaction property has a "requiresnew" or "required" value) for ALL the operations that are executed inside of it, this means that if only one of the operation fails, all the changes will be rollbacked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2012 10:41:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261703#M214833</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2012-02-11T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk uploading using web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261704#M214834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem with adding a new job every minute is that if each job takes longer than a minute you will eventually have a problem.&amp;nbsp; You may also have contention between the multiple jobs so your throughput drops.&amp;nbsp; However some degree of parallel processing is essential for the highest throughput.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the traffic tends to even out then this may not be a problem.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I were building it it I'd go for a single multi-threaded process or consider some sort of "throttle" somwhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:38:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261704#M214834</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-02-13T11:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk uploading using web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261705#M214835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah My Job (1 execution of script) takes more than minute, it depends upon the no of files but in most of the cases if takes many minutes. but each execution of job are having different data to process but eventually uploading to same alfresco repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having no issue till now regarding any conflict between jobs etc. but definitely i am concerned with the approach, i want to make it even better (efficient).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 11:46:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bulk-uploading-using-web-scripts/m-p/261705#M214835</guid>
      <dc:creator>mrsaqib</dc:creator>
      <dc:date>2012-02-13T11:46:36Z</dc:date>
    </item>
  </channel>
</rss>

