<?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: Mysql : Improve performance in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266248#M219378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If a user delete a workflow, it takes a lot of time (more 14 seconds). I have log slow query and found that an access to act_hi_detail is very slow. This is the slow query :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mysql&amp;gt; select *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_HI_DETAIL HD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp; HD.TASK_ID_ = '5972887';&lt;BR /&gt;&lt;BR /&gt;Empty set (14.03 sec)&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(The act_hi_detail has 4'000'000 rows)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add an index on TASK_ID_, the query is very fast ! (0.01 sec).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;create index ACT_IDX_SYS_HI_DETAIL_TASK_ID on act_hi_detail (task_id_);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I safety add custom index on Alfresco tables ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 11:12:00 GMT</pubDate>
    <dc:creator>dranakan</dc:creator>
    <dc:date>2013-07-22T11:12:00Z</dc:date>
    <item>
      <title>Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266243#M219373</link>
      <description>Hi,I'am trying to optimize the database (Mysql).I think it could be good for the system to analyse and optimize monthly (or weekly) the database. I am suprise to have found nothing on the forum about it (Alfresco and Mysql). That's why I prefer a confirmation before doing it…Can I run theses command</description>
      <pubDate>Fri, 11 Jan 2013 14:05:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266243#M219373</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2013-01-11T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266244#M219374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your database tables should already be using the InnoDB driver - any other setup on MySQL is not supported. Thus your commands should not change anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats most important with MySQL is optimizing your my.cnf according to your hardware setup. Most important is the amount of buffer memory that you assign to the database process, as this can save a lot of costly synchronous IO. Depending on how many concurrent users you have, there may be other options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using MySQL 5.5 and large sets of data, I've also found it useful to optimize the table file formats, i.e. use file-per-table and the advanced storage structures available with the barracuda file formats (e.g. compressed index and data segments).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally, if no user is accessing Alfresco,you can restart MySQL without restarting Alfresco. You may though end up with errors in scheduled processes / actions which Alfresco itself may kick off when the database is down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2013 11:30:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266244#M219374</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-01-13T11:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266245#M219375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco always needs the db, even when there are no users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other crucial thing to chech is the size of your connection pool,&amp;nbsp; too big wastes resources, too small delays work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2013 16:42:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266245#M219375</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-01-13T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266246#M219376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@AFaust :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Your database tables should already be using the InnoDB driver - any other setup on MySQL is not supported. Thus your commands should not change anything.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes, the tables are already in innodb. I use the "alter table…" to run a "optimize table…". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For innodb, OPTIMIZE TABLE is mapped to ALTER TABLE ("Table does not support optimize, doing recreate + analyze instead", see &lt;/SPAN&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.5/en/optimize-table.html" rel="nofollow noopener noreferrer"&gt;http://dev.mysql.com/doc/refman/5.5/en/optimize-table.html&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you never run a analyse table + optimize table ? (analyse is done with "mysqlcheck -a").&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 07:37:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266246#M219376</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2013-01-14T07:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266247#M219377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I must admit, I never encountered the necessity to do that - even on larger databases. But then again, I am not a DBA and customer DBAs may have done that in those rare cases that a customer actually uses MySQL for production.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 21:46:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266247#M219377</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-01-14T21:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266248#M219378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If a user delete a workflow, it takes a lot of time (more 14 seconds). I have log slow query and found that an access to act_hi_detail is very slow. This is the slow query :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mysql&amp;gt; select *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_HI_DETAIL HD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp; HD.TASK_ID_ = '5972887';&lt;BR /&gt;&lt;BR /&gt;Empty set (14.03 sec)&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;(The act_hi_detail has 4'000'000 rows)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add an index on TASK_ID_, the query is very fast ! (0.01 sec).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;create index ACT_IDX_SYS_HI_DETAIL_TASK_ID on act_hi_detail (task_id_);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I safety add custom index on Alfresco tables ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 11:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266248#M219378</guid>
      <dc:creator>dranakan</dc:creator>
      <dc:date>2013-07-22T11:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql : Improve performance</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266249#M219379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding a new index wont harm your environment "per se" but you need to keep those changes in mind if you upgrade the Alfresco instance to a newer version, during this process during the "schema upgrade step" we drop, alter and create tables and an unexpected index may generate problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mysql-improve-performance/m-p/266249#M219379</guid>
      <dc:creator>antoniosoler</dc:creator>
      <dc:date>2013-07-24T10:28:00Z</dc:date>
    </item>
  </channel>
</rss>

