<?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 What does useRecyclingCursor mean? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-does-userecyclingcursor-mean/m-p/1302262#M9969</link>
    <description>&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7715.html" target="_blank" rel="noopener"&gt;Table.Search&lt;/A&gt; method contains a parameter called&amp;nbsp;&lt;EM&gt;useRecyclingCursor&lt;/EM&gt;. However, the documentation on that parameter is cryptic to me:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;If set to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;SPAN&gt;, all the entries in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7621.html" target="_blank" rel="noopener"&gt;RowCursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;will reference the most current row returned by&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7629.html" target="_blank" rel="noopener"&gt;Current&lt;/A&gt;&lt;SPAN&gt;. To ensure all the entries in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7621.html" target="_blank" rel="noopener"&gt;RowCursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;remain unique, set&amp;nbsp;useRecyclingCursor&amp;nbsp;t&lt;/SPAN&gt;&lt;SPAN&gt;o&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;SPAN&gt;. The default is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Three questions on that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On the first sentence there, what does "&lt;SPAN&gt;the most current row" mean (isn't there only one current row)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;On the second sentence, I found some old ArcMap Java documentation &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/java/6bf0af81-6427-11dc-9ca3-0b35f906bb2e.htm#:~:text=passes%20over%20data.-,Recycling%20and%20cursors,-When%20instantiating%20a" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;under the "Recycling and cursors" section. Assuming this documentation applies, where the Pro SDK documentation says "To ensure all the entries in&amp;nbsp;RowCursor&amp;nbsp;remain unique," I presume that means "To ensure each row gets its own object instance," correct?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What are the use cases for "true" vs. "false" for this parameter?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 21:58:05 GMT</pubDate>
    <dc:creator>AndrewGilbert</dc:creator>
    <dc:date>2023-06-22T21:58:05Z</dc:date>
    <item>
      <title>What does useRecyclingCursor mean?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-does-userecyclingcursor-mean/m-p/1302262#M9969</link>
      <description>&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7715.html" target="_blank" rel="noopener"&gt;Table.Search&lt;/A&gt; method contains a parameter called&amp;nbsp;&lt;EM&gt;useRecyclingCursor&lt;/EM&gt;. However, the documentation on that parameter is cryptic to me:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;If set to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;SPAN&gt;, all the entries in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7621.html" target="_blank" rel="noopener"&gt;RowCursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;will reference the most current row returned by&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7629.html" target="_blank" rel="noopener"&gt;Current&lt;/A&gt;&lt;SPAN&gt;. To ensure all the entries in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7621.html" target="_blank" rel="noopener"&gt;RowCursor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;remain unique, set&amp;nbsp;useRecyclingCursor&amp;nbsp;t&lt;/SPAN&gt;&lt;SPAN&gt;o&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;SPAN&gt;. The default is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Three questions on that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;On the first sentence there, what does "&lt;SPAN&gt;the most current row" mean (isn't there only one current row)?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;On the second sentence, I found some old ArcMap Java documentation &lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/java/6bf0af81-6427-11dc-9ca3-0b35f906bb2e.htm#:~:text=passes%20over%20data.-,Recycling%20and%20cursors,-When%20instantiating%20a" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;under the "Recycling and cursors" section. Assuming this documentation applies, where the Pro SDK documentation says "To ensure all the entries in&amp;nbsp;RowCursor&amp;nbsp;remain unique," I presume that means "To ensure each row gets its own object instance," correct?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;What are the use cases for "true" vs. "false" for this parameter?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 21:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-does-userecyclingcursor-mean/m-p/1302262#M9969</guid>
      <dc:creator>AndrewGilbert</dc:creator>
      <dc:date>2023-06-22T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: What does useRecyclingCursor mean?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-does-userecyclingcursor-mean/m-p/1302294#M9970</link>
      <description>&lt;P&gt;A cursor is a data access object with an interface similar to the System.Collections.IEnumerator interface ( except Reset method).&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7628.html" target="_blank" rel="nofollow noopener"&gt;RowCursor.MoveNext()&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;returns a Boolean representing whether the last record in the result has been returned. If the result is empty, the first call to&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic7628.html" target="_blank" rel="nofollow noopener"&gt;RowCursor.MoveNext()&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;will return false.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The recycling cursors offer performance advantages by allocating a single row object and rehydrating it on each fetch of reading data. They can be used to optimize read-only access.&lt;/P&gt;&lt;P&gt;Nonrecycling cursors return a unique instance for each row returned by MoveNext. The rows returned by a non-recycling cursor can be edited. For further details, please see the conceptual doc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#search" target="_self"&gt;SearchCursor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#recycling" target="_self"&gt;Recycling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 23:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/what-does-userecyclingcursor-mean/m-p/1302294#M9970</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2023-06-22T23:48:35Z</dc:date>
    </item>
  </channel>
</rss>

