<?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: How to increase performance (first start/open) for querying MapCache in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151476#M677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that I've experienced the same behaviour.&amp;nbsp; First query on any cache data takes a long time to execute and then subsequent cache queries execute quickly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume either data is loaded into memory and / or indexing is occurring as part of the first cache query execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have noticed that this only persists for the lifetime of the application instance as the same pattern is apparent on application restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 17:29:44 GMT</pubDate>
    <dc:creator>StephenDickinson</dc:creator>
    <dc:date>2012-03-13T17:29:44Z</dc:date>
    <item>
      <title>How to increase performance (first start/open) for querying MapCache</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151474#M675</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;I tried to query a MapCache (version 10, size: ~600 mb) with a simple query. This worked , but it took a long time for the first use, about 5 minutes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Afterwards the query took 2 seconds. It seems that the MapCache will be initialized or indexed (?)&amp;nbsp; or something like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
//Creates a where clause string.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] col = new string[9];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[0] = "column1";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[1] = "column2";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[2] = "column3";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[3] = "column4";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[4] = "column5";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[5] = "column6";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[6] = "column7";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[7] = "column8";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col[8] = "column9";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StringBuilder whereClause = new StringBuilder();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereClause.Append(MyLayer.Columns["columns1"] + " = '" + txtBox.Text.ToString() + "'");


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Creates a instance of a query filter.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueryFilter queryFilter = new QueryFilter();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.WhereClause = whereClause.ToString();

FeatureDataTable fdt = MyLayer.getDataTable(queryFilter);
...
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried to use the GetDataReader, but the duration for the first start was also very long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any ideas how to increase the performance or why the query takes so long for the first start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 07:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151474#M675</guid>
      <dc:creator>ThomasDobrzinski1</dc:creator>
      <dc:date>2012-01-10T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase performance (first start/open) for querying MapCache</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151475#M676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the exact same problem.&amp;nbsp; Have you made any progress on this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151475#M676</guid>
      <dc:creator>JeremyBanner</dc:creator>
      <dc:date>2012-02-22T13:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase performance (first start/open) for querying MapCache</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151476#M677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can confirm that I've experienced the same behaviour.&amp;nbsp; First query on any cache data takes a long time to execute and then subsequent cache queries execute quickly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume either data is loaded into memory and / or indexing is occurring as part of the first cache query execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have noticed that this only persists for the lifetime of the application instance as the same pattern is apparent on application restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 17:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/how-to-increase-performance-first-start-open-for/m-p/151476#M677</guid>
      <dc:creator>StephenDickinson</dc:creator>
      <dc:date>2012-03-13T17:29:44Z</dc:date>
    </item>
  </channel>
</rss>

