<?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 VERY slow when using our new SAN in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1314809#M68331</link>
    <description>&lt;P&gt;what parts of arcpy are you using?&amp;nbsp; Do you need a full import or just bits?&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgisscripting as ags       # -- arcgisscripting module
from arcpy.geoprocessing import gp  # -- geoprocessor
from arcpy.geoprocessing import env # -- environments&lt;/LI-CODE&gt;&lt;P&gt;limiting the imports to what you need may help you narrow down something in the arcpy environment.&lt;/P&gt;&lt;P&gt;The import path can be explored in the modules and __init__.py in your installation path&lt;/P&gt;&lt;P&gt;(local install shown)&lt;/P&gt;&lt;P&gt;C:\...Install Folder...\Resources\ArcPy\arcpy&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 21:00:21 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-08-02T21:00:21Z</dc:date>
    <item>
      <title>Arcpy VERY slow when using our new SAN</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1314498#M68321</link>
      <description>&lt;P&gt;Last autumn we deployed a new SAN at our org. Ever since then any of my Python utilizing &lt;EM&gt;acrpy&lt;/EM&gt; that writes to, or references, a directory on that SAN using the complete UNC path (//SAN/DIRECTORY/SUB-DIRECTORY/SUB-SUB-DDIRECTORY/ etc.) runs exceptionally slow. However, if I use the drive letter for the path it runs at normal speeds.&amp;nbsp; And when I say slow, I mean when it would normally take a minute or two it now takes an hour or more. And it seems to be limited to the &lt;EM&gt;arcpy&lt;/EM&gt; module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are some run times using UNC/drive letter and &lt;EM&gt;shutil/arcpy.&lt;/EM&gt; The shell utilities module is used to copy a directory with shapefile files in it to the SAN. Arcpy is used to export a featureclass to a shapefile in a directory on the SAN.&lt;/P&gt;&lt;P&gt;Drive Letter and &lt;EM&gt;shutil&lt;/EM&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4070 mins&lt;/P&gt;&lt;P&gt;UNC and &lt;EM&gt;shutil&lt;/EM&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.400 mins&lt;/P&gt;&lt;P&gt;Drive Letter and &lt;EM&gt;arcpy&lt;/EM&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.150 mins&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;UNC and arcpy:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103.14 mins&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Most of this involves my data management Python that runs on a server.&amp;nbsp; I've rewritten it so &lt;EM&gt;arcpy&lt;/EM&gt; doesn't reference or write anything on the SAN.&amp;nbsp; I just works with the local hard drive.&amp;nbsp; I then use other Python libraries to move, and work with, data on the SAN.&lt;/P&gt;&lt;P&gt;Anyone else experience this?&amp;nbsp; If I had to guess it has something to do with the config of the new SAN.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1314498#M68321</guid>
      <dc:creator>BradJones3</dc:creator>
      <dc:date>2023-08-02T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy VERY slow when using our new SAN</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1314809#M68331</link>
      <description>&lt;P&gt;what parts of arcpy are you using?&amp;nbsp; Do you need a full import or just bits?&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgisscripting as ags       # -- arcgisscripting module
from arcpy.geoprocessing import gp  # -- geoprocessor
from arcpy.geoprocessing import env # -- environments&lt;/LI-CODE&gt;&lt;P&gt;limiting the imports to what you need may help you narrow down something in the arcpy environment.&lt;/P&gt;&lt;P&gt;The import path can be explored in the modules and __init__.py in your installation path&lt;/P&gt;&lt;P&gt;(local install shown)&lt;/P&gt;&lt;P&gt;C:\...Install Folder...\Resources\ArcPy\arcpy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 21:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1314809#M68331</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-08-02T21:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy VERY slow when using our new SAN</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1315192#M68344</link>
      <description>&lt;P&gt;I had this problem if I was writing any data to the SAN, accessing data on, or writing data to, the SAN (shapefiles, File GDB, .loc files, any package files, and even .sde connection files).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working around the problem and probably won't visit again until we upgrade to 3.0.&amp;nbsp; I posted here to see if anyone else experienced this or if maybe someone at Esri had thoughts.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 17:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-very-slow-when-using-our-new-san/m-p/1315192#M68344</guid>
      <dc:creator>BradJones3</dc:creator>
      <dc:date>2023-08-03T17:56:10Z</dc:date>
    </item>
  </channel>
</rss>

