<?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 Is there danger of getting cached data when querying a featurelayer that has been added to the map? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1496610#M11730</link>
    <description>&lt;P&gt;Found that by adding featurelayers to the current active map using something like:&lt;BR /&gt;&lt;BR /&gt;LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(layerParams, MapView.Active.Map);&lt;/P&gt;&lt;P&gt;it's faster to query against this feature layer using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;var featureLayer = //get from layer added to map already&lt;/P&gt;&lt;P&gt;using (var table = featureLayer.GetTable())&lt;BR /&gt;var queryFilter = new QueryFilter&lt;BR /&gt;{WhereClause = whereClause,};&lt;BR /&gt;&lt;SPAN&gt;using (var rowCursor = table.Search(queryFilter))&lt;BR /&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I know there is a setting on the featurelayer from ArcPro to refresh the layer periodically... (see attachment)&lt;/P&gt;&lt;P&gt;My concern is does this mean that data can be stale between these refresh intervals, or even if the setting is turned off? Does query return the latest/real time data always, or does it return the cached data?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 13:30:51 GMT</pubDate>
    <dc:creator>Gurunara</dc:creator>
    <dc:date>2024-06-24T13:30:51Z</dc:date>
    <item>
      <title>Is there danger of getting cached data when querying a featurelayer that has been added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1496610#M11730</link>
      <description>&lt;P&gt;Found that by adding featurelayers to the current active map using something like:&lt;BR /&gt;&lt;BR /&gt;LayerFactory.Instance.CreateLayer&amp;lt;FeatureLayer&amp;gt;(layerParams, MapView.Active.Map);&lt;/P&gt;&lt;P&gt;it's faster to query against this feature layer using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;var featureLayer = //get from layer added to map already&lt;/P&gt;&lt;P&gt;using (var table = featureLayer.GetTable())&lt;BR /&gt;var queryFilter = new QueryFilter&lt;BR /&gt;{WhereClause = whereClause,};&lt;BR /&gt;&lt;SPAN&gt;using (var rowCursor = table.Search(queryFilter))&lt;BR /&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I know there is a setting on the featurelayer from ArcPro to refresh the layer periodically... (see attachment)&lt;/P&gt;&lt;P&gt;My concern is does this mean that data can be stale between these refresh intervals, or even if the setting is turned off? Does query return the latest/real time data always, or does it return the cached data?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1496610#M11730</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-24T13:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there danger of getting cached data when querying a featurelayer that has been added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1497369#M11747</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/632615"&gt;@Gurunara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A direct query to the data/layer made in the SDK should &lt;EM&gt;always &lt;/EM&gt;hit the database.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 21:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1497369#M11747</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-06-25T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there danger of getting cached data when querying a featurelayer that has been added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1497844#M11755</link>
      <description>&lt;P&gt;So (just to confirm) you're saying that the query i am using, as below, is always hitting the database?&lt;/P&gt;&lt;P&gt;var featureLayer = //get from layer added to map already&lt;/P&gt;&lt;P&gt;using (var table = featureLayer.GetTable())&lt;BR /&gt;var queryFilter = new QueryFilter&lt;BR /&gt;{WhereClause = whereClause,};&lt;BR /&gt;&lt;SPAN&gt;using (var rowCursor = table.Search(queryFilter))&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 19:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1497844#M11755</guid>
      <dc:creator>Gurunara</dc:creator>
      <dc:date>2024-06-26T19:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there danger of getting cached data when querying a featurelayer that has been added to the map?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1498569#M11768</link>
      <description>&lt;P&gt;Correct! It should query the underlying database.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 19:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/is-there-danger-of-getting-cached-data-when/m-p/1498569#M11768</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2024-06-27T19:07:42Z</dc:date>
    </item>
  </channel>
</rss>

