<?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: Arcpy Cursor very slow/not working on tables within SDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203007#M65323</link>
    <description>&lt;P&gt;Suspect you are running into a VPN issue.&lt;/P&gt;&lt;P&gt;You might try on a local copy and see if it is better.&amp;nbsp; My experience shows that SDE/SQL server operations are dreadfully slow when accessing through VPN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 19:11:52 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2022-08-15T19:11:52Z</dc:date>
    <item>
      <title>Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202712#M65308</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fairly new working with SDE and I am having a lot of issues trying to run any arcpy cursor, or any arcpy tools on tables that are over 10k records. These tables were created by a stored procedure on SQL, then register within the SDE, they are not versioned, OBJECTID was added as part of the process as well as indexes. Accessing the&amp;nbsp; database&amp;nbsp; on SQL management Studio and creating the tables seems to work as expected. I've been told by peers&amp;nbsp; this may be normal with SDE and it is only intended for editing version tables, and&amp;nbsp; compromises on performance are made for everything else. I am not ready to give up yet. is the SDE not design for these kind of processes? Does anybody think it may be an issue with the original install and configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 00:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202712#M65308</guid>
      <dc:creator>Cris20</dc:creator>
      <dc:date>2022-08-15T00:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202788#M65310</link>
      <description>&lt;P&gt;Cursors are found throughout every programming language. arcpy's cursors are wrappers for the underlying database language, and they are a primary means of performing CRUD operations on feature data, not just for editing versioned tables. Some databases might be faster than others, but there are a lot of other factors that come into play outside of the cursor itself.&lt;/P&gt;&lt;P&gt;Are you using the arcpy.da.&amp;lt;Type&amp;gt;Cursor cursors, or the old arcpy.&amp;lt;Type&amp;gt;Cursor?&amp;nbsp; Try the .da. cursors- they are documented as being the faster of the two.&lt;/P&gt;&lt;P&gt;Are you accessing the data through VPN, firewall, proxies, etc?&lt;/P&gt;&lt;P&gt;What functions/ data manipulation are you doing within the cursor?&lt;/P&gt;&lt;P&gt;Is this SQL Express, or full SQL server?&amp;nbsp; How much RAM is available to the SQL instance?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 12:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202788#M65310</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-15T12:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202876#M65313</link>
      <description>&lt;P&gt;Hi JeffK,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your feedback.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my response to your questions:&lt;/P&gt;
&lt;P&gt;I am using arcpy.da type of cursors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, accessing the data through VPN&lt;/P&gt;
&lt;P&gt;Mostly update cursors, but also other tools such as add fields&amp;nbsp; (arcpy.AddFieldd_managmenet) and statistics ( arcy.Statistics_analysis). None are currently working on large tables&lt;/P&gt;
&lt;P&gt;full SQL server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1202876#M65313</guid>
      <dc:creator>Cris20</dc:creator>
      <dc:date>2022-08-15T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203007#M65323</link>
      <description>&lt;P&gt;Suspect you are running into a VPN issue.&lt;/P&gt;&lt;P&gt;You might try on a local copy and see if it is better.&amp;nbsp; My experience shows that SDE/SQL server operations are dreadfully slow when accessing through VPN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 19:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203007#M65323</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-08-15T19:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203059#M65327</link>
      <description>&lt;P&gt;My experience with the VPN we use, is the same as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;'s.&amp;nbsp; I gave up on it and just remote in to a local pc to do anything gis. Try, if you can, to run the script on the hosting server or on a pc that is not going through a VPN. You can copy the fc to a local file geodatabase (or local test sql express db) and see if the performance is any different as a test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 21:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203059#M65327</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-15T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203069#M65328</link>
      <description>&lt;P&gt;Thank you both. I do have one follow up: I am just experiencing issues when connecting and trying to run tools or update cursors on to the SDE via ArcMap/Arc Pro, however I have no issues at all when accessing the database via SQL and I can create complex stored procedures that run normal regardless of the size of the tables. Do you still think is a VPN thing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 22:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203069#M65328</guid>
      <dc:creator>Cris20</dc:creator>
      <dc:date>2022-08-15T22:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Cursor very slow/not working on tables within SDE</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203204#M65332</link>
      <description>&lt;P&gt;Give a local database a try and that will probably give a good idea if it is or not. Accessing the db is really reading the list of tables within the db and Pro likes to cache things locally.&amp;nbsp; Mine is slow as well when it connects to the database and reads the datasets. 2-4 minutes of spinning and thinking... so each click has to be very calculated and deliberate.&lt;/P&gt;&lt;P&gt;The stored procedures are computed on the server, so it's getting a signal to run them and returning the results.&amp;nbsp; Accessing the data through the cursor (or the other functions) can involve multiple send receive requests/ and results, updated data returns from your pc's processor/ memory to the server, and back so it's getting shoved through that working that VPN tunnel a lot. If you have virus/malware watching the VPN activity, it gets checked on each request and slowed down even further.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 12:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-cursor-very-slow-not-working-on-tables/m-p/1203204#M65332</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-16T12:45:52Z</dc:date>
    </item>
  </channel>
</rss>

