<?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: TMQ, indexes and performances in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18525#M8211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that following patches are applied by default when running alfresco 5.1x installation:&lt;/P&gt;&lt;P&gt;- patch.db-V4.2-metadata-query-indexes&lt;/P&gt;&lt;P&gt;- patch.db-V5.1-metadata-query-indexes&lt;/P&gt;&lt;P&gt;After every restart, you'll see message: Ignoring script patch (post-Hibernate): patch.db-VX.X-metadata-query-indexes, meaning&amp;nbsp;that patch is ignored as&amp;nbsp;already&amp;nbsp;applied (to my understanding).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;indexes below are set on the alfresco DB on 5.1.g by default:&lt;/P&gt;&lt;P&gt;table alf_node:&lt;/P&gt;&lt;P&gt;idx_alf_node_cor&amp;nbsp;&lt;BR /&gt;idx_alf_node_crd&amp;nbsp;&lt;BR /&gt;idx_alf_node_mdq&amp;nbsp;&lt;BR /&gt;idx_alf_node_mod&amp;nbsp;&lt;BR /&gt;idx_alf_node_mor&amp;nbsp;&lt;BR /&gt;idx_alf_node_tqn&amp;nbsp;&lt;BR /&gt;idx_alf_node_txn_type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table alf_node_properties:&lt;/P&gt;&lt;P&gt;idx_alf_nprop_b&lt;BR /&gt;idx_alf_nprop_d&lt;BR /&gt;idx_alf_nprop_f&lt;BR /&gt;idx_alf_nprop_l&lt;BR /&gt;idx_alf_nprop_s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to action has to be taken....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 14:15:30 GMT</pubDate>
    <dc:creator>vincent-kali</dc:creator>
    <dc:date>2017-06-26T14:15:30Z</dc:date>
    <item>
      <title>TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18521#M8207</link>
      <description>Hi all,I'm working with TMQ on a large repo (about 5 millions of docs) on a community 5.1.g.A read in doc that optional indexes could be added by the patch (http://dev.alfresco.com/resource/AlfrescoOne/5.0/configuration/alfresco/dbscripts/upgrade/4.2/org.hibernate.dialect.Dialect/metadata-query-inde</description>
      <pubDate>Wed, 21 Jun 2017 11:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18521#M8207</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-21T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18522#M8208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gave a presentation about transactional metadata queries at last BeeCon which included considerations for performance (&lt;A href="https://www.youtube.com/watch?v=D_C_x8i14H8" rel="nofollow noopener noreferrer"&gt;video recording&lt;/A&gt;). In Alfresco 5.1.g there are actually two sets of indices for TMQ - one originates from Alfresco 4.2 (the one you referenced) and another was introduced with 5.1. For adequate performance both must be enabled and their indices must be added to the database schema. For very specific use cases additional, business-oriented indices can be useful. I cannot see anything close to a 1000x worse performance in transactional metadata queries when they are used correctly. It is true that there are some scaling issues (due to the design) when you attempt to retrieve results for a very unselective query or attempt to retrieve page 20 or later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your PostgreSQL server may need to be tuned if you are (still) using the default installation done by Alfresco because that will have the configuration for memory-related parameters (e.g. shared_buffers) set to the factory default which is not suitable for scaling production use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18522#M8208</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-22T17:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18523#M8209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Axel for your response. I've already watched&amp;nbsp;your (great) presentation about TMQ.&lt;/P&gt;&lt;P&gt;When you say "both must be enabled and their indices must be added to the database schema" does it means that I've some action to perform on a 5.1.g default setup ? (As indexes are already defined in DB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:43:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18523#M8209</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-22T17:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18524#M8210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned in my presentation, by default, none of the indices are added in an Alfresco installation and action must be taken. That applies to 5.1.g as well. I don't know why you have one set of indices added - I would assume because at some point you had actually enabled that patch for at least one start of the system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 18:13:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18524#M8210</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-22T18:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18525#M8211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that following patches are applied by default when running alfresco 5.1x installation:&lt;/P&gt;&lt;P&gt;- patch.db-V4.2-metadata-query-indexes&lt;/P&gt;&lt;P&gt;- patch.db-V5.1-metadata-query-indexes&lt;/P&gt;&lt;P&gt;After every restart, you'll see message: Ignoring script patch (post-Hibernate): patch.db-VX.X-metadata-query-indexes, meaning&amp;nbsp;that patch is ignored as&amp;nbsp;already&amp;nbsp;applied (to my understanding).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;indexes below are set on the alfresco DB on 5.1.g by default:&lt;/P&gt;&lt;P&gt;table alf_node:&lt;/P&gt;&lt;P&gt;idx_alf_node_cor&amp;nbsp;&lt;BR /&gt;idx_alf_node_crd&amp;nbsp;&lt;BR /&gt;idx_alf_node_mdq&amp;nbsp;&lt;BR /&gt;idx_alf_node_mod&amp;nbsp;&lt;BR /&gt;idx_alf_node_mor&amp;nbsp;&lt;BR /&gt;idx_alf_node_tqn&amp;nbsp;&lt;BR /&gt;idx_alf_node_txn_type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table alf_node_properties:&lt;/P&gt;&lt;P&gt;idx_alf_nprop_b&lt;BR /&gt;idx_alf_nprop_d&lt;BR /&gt;idx_alf_nprop_f&lt;BR /&gt;idx_alf_nprop_l&lt;BR /&gt;idx_alf_nprop_s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to action has to be taken....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:15:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18525#M8211</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-26T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: TMQ, indexes and performances</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18526#M8212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it looks like the recent version now include these patches by default in the first installation and the runtime check has also been adapted. That is good to know and I had not noticed that before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:17:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/tmq-indexes-and-performances/m-p/18526#M8212</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-26T14:17:32Z</dc:date>
    </item>
  </channel>
</rss>

