<?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 Startup speed and number of sql queries in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182667#M135797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experimenting with Alfresco and DoCASU.&amp;nbsp; I am a bit disappointed in the startup speed and did a little digging (hoping there was a magic "go-faster" flag).&amp;nbsp; When on a local network with the database (MySql 5), startup speed is on the order of a minute.&amp;nbsp; On a non-local network (vpn) with a round trip latency of about 13ms, startup is over two minutes (this is a quad core machine with 8g of memory, so those are not an issue).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Versions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Alfresco started (Labs): Current version 3.0.0 (b 1164) schema 131&lt;BR /&gt;DoCASU: 'com.optaros.alfresco.docasu' version 1.3.0&lt;BR /&gt;Tomcat 5.5.20&lt;BR /&gt;Linux&amp;nbsp; 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I turned on hibernate's sql logging and we have (during startup only):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;$ grep '\[org.hibernate.SQL\] select child' catalina.out | wc -l&lt;BR /&gt;1915&lt;BR /&gt;$ grep '\[org.hibernate.SQL\] select' catalina.out | wc -l&lt;BR /&gt;2191&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;1800+ of the queries are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;select childassoc0_.id as id6_, childassoc0_.version as version6_, childassoc0_.parent_node_id as parent3_6_, childassoc0_.type_qname_id as type4_6_, childassoc0_.child_node_name as child5_6_, childassoc0_.child_node_name_crc as child6_6_, childassoc0_.child_node_id as child7_6_, childassoc0_.qname_ns_id as qname8_6_, childassoc0_.qname_localname as qname9_6_, childassoc0_.is_primary as is10_6_, childassoc0_.assoc_index as assoc11_6_ from alf_child_assoc childassoc0_ where childassoc0_.parent_node_id=? and childassoc0_.type_qname_id=? and childassoc0_.child_node_name=? and childassoc0_.child_node_name_crc=? order by childassoc0_.assoc_index, childassoc0_.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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to turn this off or load these entities on demand?&amp;nbsp; Obviously a local database helps…just wondering if there is way to avoid it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this query starts in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;at org.alfresco.web.scripts.AbstractWebScript.init(AbstractWebScript.java:114)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.scripts.DeclarativeWebScript.init(DeclarativeWebScript.java:61)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.scripts.DeclarativeRegistry.initWebScripts(DeclarativeRegistry.java:306)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.scripts.DeclarativeRegistry.reset(DeclarativeRegistry.java:168)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.scripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:231)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.web.scripts.RepositoryContainer.init(RepositoryContainer.java:381)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.repo.web.scripts.RepositoryContainer.reset(RepositoryContainer.java:352)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.web.scripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:254)&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Last thing…almost all these queries come after:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;01:50:48,643 User:System INFO&amp;nbsp; [service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (b 1164) schema 131 - Installed version 3.0.0 (b 1164) schema 131&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2008 02:19:18 GMT</pubDate>
    <dc:creator>krm1312</dc:creator>
    <dc:date>2008-09-26T02:19:18Z</dc:date>
    <item>
      <title>Startup speed and number of sql queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182667#M135797</link>
      <description>I am experimenting with Alfresco and DoCASU.&amp;nbsp; I am a bit disappointed in the startup speed and did a little digging (hoping there was a magic "go-faster" flag).&amp;nbsp; When on a local network with the database (MySql 5), startup speed is on the order of a minute.&amp;nbsp; On a non-local network (vpn) with a round</description>
      <pubDate>Fri, 26 Sep 2008 02:19:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182667#M135797</guid>
      <dc:creator>krm1312</dc:creator>
      <dc:date>2008-09-26T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Startup speed and number of sql queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182668#M135798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just as a comparison, I exported the database (all 384k uncompressed mysqldump) and locally the same aflresco instance starts up in 19s on the same machine.&amp;nbsp; So it's clearly just latency due to the number of queries and the round trip time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 02:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182668#M135798</guid>
      <dc:creator>krm1312</dc:creator>
      <dc:date>2008-09-26T02:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Startup speed and number of sql queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182669#M135799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently Alfresco is quite "chatty" with respect to the database, so ensuring the connection between Alfresco and the database is high bandwidth / low latency and has minimal contention is very important from a performance perspective.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 03:57:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182669#M135799</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-09-26T03:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Startup speed and number of sql queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182670#M135800</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;can you tell me how to turn on hibernate's sql logging?&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>Fri, 26 Sep 2008 19:15:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182670#M135800</guid>
      <dc:creator>fschnell</dc:creator>
      <dc:date>2008-09-26T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Startup speed and number of sql queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182671#M135801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hibernate uses a system property called "hibernate.show_sql" that controls whether SQL is logged or not (see &lt;/SPAN&gt;&lt;A href="http://www.google.com/search?q=hibernate.show_sql" rel="nofollow noopener noreferrer"&gt;http://www.google.com/search?q=hibernate.show_sql&lt;/A&gt;&lt;SPAN&gt; for details).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 19:34:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startup-speed-and-number-of-sql-queries/m-p/182671#M135801</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-09-26T19:34:21Z</dc:date>
    </item>
  </channel>
</rss>

