<?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: The Cursor of Search method need Release? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560286#M31745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the data isn't versioned, there is no proplem,but if the data is versioned, the low efficiency of cursor appears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use spatial Filter in Searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the version function affect the efficiency of Search?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the A table, D table of this layer has only one record, I don't edit the data much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Oracle: 10.2.0.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ArcSDE:9.3&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jul 2010 01:16:46 GMT</pubDate>
    <dc:creator>szcszc</dc:creator>
    <dc:date>2010-07-27T01:16:46Z</dc:date>
    <item>
      <title>The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560281#M31740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I shield the first search, the finally time is about 50ms, but if I don't shiled the first search, the finally time is more than 1000ms, the key is the variable "ipFeatureCursor", it seems that Repeatedly Search result in low Efficiency&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IFeatureClassPtr ipFeatureClass;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureWorkspace-&amp;gt;OpenFeatureClass(CComBSTR("POINT"), &amp;amp;ipFeatureClass);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IQueryFilterPtr ipQueryFilter(CLSID_SpatialFilter);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISpatialFilterPtr ipSpatialFilter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ipSpatialFilter = ipQueryFilter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IEnvelopePtr ipEnvelope(CLSID_Envelope);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipEnvelope-&amp;gt;PutCoords(418500,143700,418950,144000); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;putref_Geometry(IGeometryPtr(ipEnvelope));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;put_SpatialRel(esriSpatialRelEnvelopeIntersects); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; BSTR strFieldName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureClass-&amp;gt;get_ShapeFieldName(&amp;amp;strFieldName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;put_GeometryField(strFieldName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; IFeatureCursorPtr ipFeatureCursor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureClass-&amp;gt;Search(ipQueryFilter, VARIANT_FALSE, &amp;amp;ipFeatureCursor); //The firsrt Search&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IEnvelopePtr ipEnvelope2(CLSID_Envelope);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipEnvelope2-&amp;gt;PutCoords(418770,143850,418790,143890);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;putref_Geometry(IGeometryPtr(ipEnvelope2));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;put_GeometryField(strFieldName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipSpatialFilter-&amp;gt;put_SpatialRel(esriSpatialRelEnvelopeIntersects); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; DWORD dStart = GetTickCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureClass-&amp;gt;Search(ipQueryFilter, VARIANT_FALSE, &amp;amp;ipFeatureCursor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; IFeaturePtr ipFeature;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; long lCount = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureCursor-&amp;gt;NextFeature(&amp;amp;ipFeature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; while (hr == S_OK)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureCursor-&amp;gt;NextFeature(&amp;amp;ipFeature);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; lCount++;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; DWORD dEnd = GetTickCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; DWORD dValue = dEnd - dStart;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CString str;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; str.Format("%ld,Countï¼?%ld", dValue, lCount);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AfxMessageBox(str);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 04:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560281#M31740</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-06-21T04:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560282#M31741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the first Search is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; hr = ipFeatureClass-&amp;gt;Search(NULL, VARIANT_FALSE, &amp;amp;ipFeatureCursor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The finally time is about 50ms, Who knows the reason?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 05:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560282#M31741</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-06-21T05:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560283#M31742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Who explain the reason,&amp;nbsp; Vangelo?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 04:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560283#M31742</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-06-23T04:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560284#M31743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, I have little experience with ArcObjects, so I'm not a resource in this area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You may want to try the &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/20-ArcObjects-All-Development-Languages"&gt;ArcObjects forum&lt;/A&gt;&lt;SPAN&gt; or just contact Tech Support directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you post, be sure to specify which version (and service pack) of ArcGIS and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE you are using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 11:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560284#M31743</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-06-23T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560285#M31744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, I have little experience with ArcObjects, so I'm not a resource in this area.&lt;BR /&gt;You may want to try the &lt;A href="http://forums.arcgis.com/forums/20-ArcObjects-All-Development-Languages"&gt;ArcObjects forum&lt;/A&gt; or just contact Tech Support directly.&lt;BR /&gt; &lt;BR /&gt;If you post, be sure to specify which version (and service pack) of ArcGIS and &lt;BR /&gt;ArcSDE you are using.&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 23:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560285#M31744</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-06-23T23:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: The Cursor of Search method need Release?</title>
      <link>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560286#M31745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the data isn't versioned, there is no proplem,but if the data is versioned, the low efficiency of cursor appears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use spatial Filter in Searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the version function affect the efficiency of Search?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the A table, D table of this layer has only one record, I don't edit the data much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Oracle: 10.2.0.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ArcSDE:9.3&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 01:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/the-cursor-of-search-method-need-release/m-p/560286#M31745</guid>
      <dc:creator>szcszc</dc:creator>
      <dc:date>2010-07-27T01:16:46Z</dc:date>
    </item>
  </channel>
</rss>

