<?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: Performance of &amp;quot;READ_ONLY&amp;quot; transactions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/performance-of-quot-read-only-quot-transactions/m-p/38946#M16378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no specific difference as to caching for read-only transactions. But Alfresco will save on the overhead of updating the alf_transaction table with an additional transaction that needs to be tracked for changes by SOLR, so alone from that perspective Alfresco will be a tiny bit faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot say that I have ever observed a noticably better performance just by using read-only transactions, but measurements of this effect would be highly selective to specific constellations of types of concurrent loads (read-only alone, scaling to X threads + read-only in parallel to writes, scaling to X/Y threads), dependent on the kinds of operations performed in those transactions and a lot of infrastructure factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course transaction isolation should be as restrictive as possible, but usally they will be solely dependant on the HTTP verb of the ReST API call, e.g. GET are always read-only, PUT/POST/DELETE are always read-write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of looking at transaction isolation for improvements, I would advise to look at the JVM heap usage, garbage collection metrics and potentially the cache sizing/utilisation. The latter has been shown to bring anywhere up to 200% improvements even on systems with a extremely well tuned DB (comparing worst-case "load from DB" vs. best-case "load only from cache").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 12:39:55 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-06-12T12:39:55Z</dc:date>
    <item>
      <title>Performance of "READ_ONLY" transactions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/performance-of-quot-read-only-quot-transactions/m-p/38945#M16377</link>
      <description>In Alfresco, do "READ_ONLY" transactions have better performance than "READ_WRITE" transactions?Does Afresco use any faster&amp;nbsp;caching behavior when processing READ_ONLY transactions?We are looking to improve the performance of our application, and we've noticed that a decent percentage of our WebScrip</description>
      <pubDate>Sun, 11 Jun 2017 16:29:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/performance-of-quot-read-only-quot-transactions/m-p/38945#M16377</guid>
      <dc:creator>davidraines</dc:creator>
      <dc:date>2017-06-11T16:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance of "READ_ONLY" transactions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/performance-of-quot-read-only-quot-transactions/m-p/38946#M16378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no specific difference as to caching for read-only transactions. But Alfresco will save on the overhead of updating the alf_transaction table with an additional transaction that needs to be tracked for changes by SOLR, so alone from that perspective Alfresco will be a tiny bit faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot say that I have ever observed a noticably better performance just by using read-only transactions, but measurements of this effect would be highly selective to specific constellations of types of concurrent loads (read-only alone, scaling to X threads + read-only in parallel to writes, scaling to X/Y threads), dependent on the kinds of operations performed in those transactions and a lot of infrastructure factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course transaction isolation should be as restrictive as possible, but usally they will be solely dependant on the HTTP verb of the ReST API call, e.g. GET are always read-only, PUT/POST/DELETE are always read-write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of looking at transaction isolation for improvements, I would advise to look at the JVM heap usage, garbage collection metrics and potentially the cache sizing/utilisation. The latter has been shown to bring anywhere up to 200% improvements even on systems with a extremely well tuned DB (comparing worst-case "load from DB" vs. best-case "load only from cache").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/performance-of-quot-read-only-quot-transactions/m-p/38946#M16378</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-12T12:39:55Z</dc:date>
    </item>
  </channel>
</rss>

