<?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 FeatureTable QueryAsync Performance in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500651#M6157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a tool that frequently queries a set of feature layers provided from a runtime Geodatabase. It just seems query performance is slower than I would expect.&amp;nbsp; I've made sure the queried fields are indexed, but that does not offer as much improvement as I had hoped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just using the QueryAsync method on a FeatureTable to return a set of features.&amp;nbsp; Nothing fancy.&amp;nbsp; Basically like the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a faster way?&amp;nbsp; I've looked a bit into the QueryTask class that seems to offer the option to limit the number of fields returned -- which could possibly be helpful, but have not had luck with this pointing at a runtime Geodatabase feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any pointers.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueryFilter&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; qf = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueryFilter&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; qf.WhereClause = primaryLayer.FeederIDFieldName + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;" in ("&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; + feederIDs + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;")"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IEnumerable&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;Feature&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&amp;gt; resultFeatures = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; featureTable.QueryAsync(qf);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 19:56:41 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2017-09-13T19:56:41Z</dc:date>
    <item>
      <title>FeatureTable QueryAsync Performance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500651#M6157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a tool that frequently queries a set of feature layers provided from a runtime Geodatabase. It just seems query performance is slower than I would expect.&amp;nbsp; I've made sure the queried fields are indexed, but that does not offer as much improvement as I had hoped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just using the QueryAsync method on a FeatureTable to return a set of features.&amp;nbsp; Nothing fancy.&amp;nbsp; Basically like the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a faster way?&amp;nbsp; I've looked a bit into the QueryTask class that seems to offer the option to limit the number of fields returned -- which could possibly be helpful, but have not had luck with this pointing at a runtime Geodatabase feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any pointers.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueryFilter&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; qf = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;QueryFilter&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; qf.WhereClause = primaryLayer.FeederIDFieldName + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;" in ("&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; + feederIDs + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;")"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IEnumerable&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;Feature&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&amp;gt; resultFeatures = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; featureTable.QueryAsync(qf);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500651#M6157</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-09-13T19:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable QueryAsync Performance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500652#M6158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should have mentioned I'm working with 10.2.6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500652#M6158</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-09-13T19:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable QueryAsync Performance</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500653#M6159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you request very large datasets, it will be a little slow. The v100.x has significantly improved this.&lt;/P&gt;&lt;P&gt;There's no way to limit the outfields. That feature is mostly there to reduce the response sizes, so you don't have to download too much data from the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/featuretable-queryasync-performance/m-p/500653#M6159</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-09-15T17:39:07Z</dc:date>
    </item>
  </channel>
</rss>

