<?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 use QueryFilter.Subfield with plugin datasources impls? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837834#M3639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rich - appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2020 19:42:22 GMT</pubDate>
    <dc:creator>RobertGurrieri</dc:creator>
    <dc:date>2020-08-18T19:42:22Z</dc:date>
    <item>
      <title>How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837827#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;We are implementing a plugin datasource that pulls in data from a local sqlite database.&amp;nbsp; Some of these datasets can be quite large (100K’s of elements for some layers) and it is possible for there to be quite a few Fields (e.g. a dozen or more).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;We have the "IsQueryLanguageSupported" flag on the datasource template set to true, and we leverage the "whereclaue" property on the queryfilter to improve performance on data reads for the higher-volume cases.&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Symbology is one of the most demanding/important cases, where data for many/all elements is frequently requested as the display renders.&amp;nbsp; These Query requests tend to come in chunks of about 500 rows; we are extracting the ids (from the IN statement) to populate only the appropriate subset of rows.&amp;nbsp; We’re getting reasonable performance with a few Fields, but degrades when there are more Fields.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Symbology tends to only be applied to 1 or 2 fields, so we’re hoping for a way to optimize display performance by only getting the data that is needed.&amp;nbsp; SubFields looks to be exactly what we want:&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: .5in; text-indent: .5in;"&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Plugin-Datasources"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Plugin-Datasources&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;SPAN style="font-size: 12.0pt; color: #24292e; background: white;"&gt;If a SubFields clause is specified then only those values for fields listed in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #24292e;"&gt;QueryFilter.SubFields&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; color: #24292e; background: white;"&gt;&amp;nbsp;should be populated into the returned rows … values not specified in the SubFields clause should be set to null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;However, when a query on the datasource is triggered on rendering symbology set up around a single field, the "Subfields" property on the QueryFilter does not seem to ever provide additional context.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;:&lt;/EM&gt;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;&lt;EM&gt;It seems like SubFields should be populated for the symbology cases.&amp;nbsp; Is that an oversight (or are we missing something/misunderstanding)?&lt;/EM&gt;&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;&lt;EM&gt;If SubFields is not something we can take advantage of, do you have other thoughts on ways we can optimize for the Symbology case?&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 14:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837827#M3632</guid>
      <dc:creator>BenjaminWhite</dc:creator>
      <dc:date>2020-07-13T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837828#M3633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benjamin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="border: 0px; margin: 0in 0px 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px 0.5ex 0in;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;It seems like SubFields should be populated for the symbology cases.&amp;nbsp; Is that an oversight (or are we missing something/misunderstanding)?&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you saying that when you redraw the map, your implementation of PluginTableTemplate.Search(QueryFilter) gets called, and the QueryFilter.Subfields property is set to null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 23:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837828#M3633</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-13T23:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837829#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the confusion - the subfields property is an empty string, when arcgis pro queries our plugin datasource for the sake of color coding.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, if we set up symbology type of Graduated colors around a field in our plugin datasource "Population", it would make sense that the QueryFilter.Subfields property would refer to the "Population" attribute so we aren't getting more data than we need to for this, or similar use cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is more clear,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 00:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837829#M3634</guid>
      <dc:creator>BenjaminWhite</dc:creator>
      <dc:date>2020-07-14T00:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837830#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Giving this one a nudge to get it back on the radar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; "&gt;re: Are you saying that when you redraw the map, your implementation of PluginTableTemplate.Search(QueryFilter) gets called, and the QueryFilter.Subfields property is set to null?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Essentially -- SubFields&amp;nbsp;is always "*" (all fields)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However (as mentioned in the original posting, it sounds like it should give us additional information for cases where it only needs a subset of the data)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; text-indent: 0.5in; margin: 0px 0px 0px 0.5in;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fesri%2Farcgis-pro-sdk%2Fwiki%2FProGuide-Plugin-Datasources" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Plugin-Datasources&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; margin: 0px 0px 0px 1in;"&gt;&lt;SPAN style="color: #24292e; background: white; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;If a SubFields clause is specified then only those values for fields listed in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; border: 0px; font-weight: inherit; font-size: 10pt;"&gt;QueryFilter.SubFields&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background: white; border: 0px; font-weight: inherit; font-size: 12pt;"&gt;&amp;nbsp;should be populated into the returned rows … values not specified in the SubFields clause should be set to null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;But we've&amp;nbsp;reviewed quite a few difference cases, and we've never seen SubFields return anything other than "*".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;We would expect (and really hope) that SubFields would be provided for Symbology cases.&amp;nbsp; Do you know what cases SubFields would be specified&amp;nbsp;(and why it is not provided for symbology&amp;nbsp;cases)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Rob.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 20:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837830#M3635</guid>
      <dc:creator>RobertGurrieri</dc:creator>
      <dc:date>2020-07-17T20:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837831#M3636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're investigating this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 23:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837831#M3636</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-17T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837832#M3637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just checking in - any update on this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 14:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837832#M3637</guid>
      <dc:creator>RobertGurrieri</dc:creator>
      <dc:date>2020-08-17T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837833#M3638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We haven't looked at it yet, but&amp;nbsp;we're scheduled&amp;nbsp;to investigate during the Pro 2.7 release cycle (now through fall).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 00:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837833#M3638</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-08-18T00:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837834#M3639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rich - appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 19:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/837834#M3639</guid>
      <dc:creator>RobertGurrieri</dc:creator>
      <dc:date>2020-08-18T19:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use QueryFilter.Subfield with plugin datasources impls?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/1009990#M5876</link>
      <description>&lt;P&gt;This is fixed in the just-released ArcGIS Pro 2.7 release.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 23:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-use-queryfilter-subfield-with-plugin/m-p/1009990#M5876</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-12-15T23:52:15Z</dc:date>
    </item>
  </channel>
</rss>

