<?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: Why would my additional MakeTableView_management() calls take drastically longer? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488746#M38209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;everything has to cycle through your first loop, hence your incremental time creep as you add more to the quest.&amp;nbsp; Perhaps your indentation is completely off but I see no reason to cycle through every feature when you really only want to cycle through the features that match your query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 15:41:27 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-01-25T15:41:27Z</dc:date>
    <item>
      <title>Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488745#M38208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a Python script that involves selecting parcels from a feature class and I've run into some odd behavior in my sanity checks. In the code below I loop through the list of specified tax ID&amp;nbsp;numbers&amp;nbsp;and use the MakeTableView trick to get a count of elements matching a specific "where" clause. If I only give it one tax ID, the script finishes in a couple of seconds. If I give it two, it gets stuck on MakeTableView for about 4 minutes, and this seems to increase by about 4 minutes for each additional tax ID. I've tried explicitly deleting the resulting table view as soon as I'm finished with it, but that made no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, I changed the script to use a search cursor and the "where" clause to give me the same functionality, but this is just bouncing around the back of my head—why would the subsequent MakeTableView calls perform so much slower than the first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit for clarity: TID is a list of tax ID's obtained by splitting a multi-value GetParameterAsText().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Add all desired parcels to selection&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; tid &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; TID&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; tid &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; tid &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; "&lt;SPAN class="comment token"&gt;#":&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Make sure the parcel ID is formatted correctly&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; re&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;match&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pattern&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; GPException&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Input Parcel IDs must be in the format "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&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; &lt;SPAN class="string token"&gt;"YY-YYY-YYYY, where Y is a single digit number."&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&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; &lt;SPAN class="string token"&gt;" For example, 06-019-0009."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Make sure parcel ID is a valid parcel&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; TID_field &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" = '"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; tid &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"'"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeTableView_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parcels&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory/temp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; where&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetCount_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/temp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;raise&lt;/SPAN&gt; GPException&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Cannot find parcel ID "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; tid &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" in parcel "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&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; &lt;SPAN class="string token"&gt;"list."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/temp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Finally, add it to the selection if it's passed all the checks&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parcels&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ADD_TO_SELECTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; where&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488745#M38208</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2021-12-11T21:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488746#M38209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;everything has to cycle through your first loop, hence your incremental time creep as you add more to the quest.&amp;nbsp; Perhaps your indentation is completely off but I see no reason to cycle through every feature when you really only want to cycle through the features that match your query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488746#M38209</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-25T15:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488747#M38210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, TID is a list of input tax IDs that comes from a GetParamterAsText() call on a multi-value parameter. If I am not misunderstanding anything, this means there's only one loop and its number of executions is equal to the number of items in that list. I've confirmed this by debugging it and stepping through each line of code. Everything works as I'd expect, but the program stops at line 11 (MakeTableManagement) for several minutes the second (third, fourth, etc) time through the loop but not the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(edit: line number)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488747#M38210</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2017-01-25T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488748#M38211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so is line 14 indented wrong then? it seems you create the in-memory table, then try to delete the workspace there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488748#M38211</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-25T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488749#M38212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My browser is showing line 14 as the continuation of the exception's message, so I&amp;nbsp;assume we're talking about the Delete_management() line. I don't think it's indented wrong—I am trying to delete the table view regardless of the outcome of the "if GetCount..." as an attempt to solve the problem under the assumption that trying to create a table view with the same path as an existing table view could be causing issues. However,&amp;nbsp;including or removing this line hasn't&amp;nbsp;changed the behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488749#M38212</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2017-01-25T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488750#M38213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have run into issues with certain geoprocessing tools getting bogged down like what you describe here when looping.&amp;nbsp; I think it is tied to some memory management or garbage collection issue at the interface between the tool and ArcPy.&amp;nbsp; Try taking lines 11-13 and wrapping them in a stand-alone function, and then call that function from within your loop.&amp;nbsp; See if that does away with the incremental time creep you are seeing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 18:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488750#M38213</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-01-25T18:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488751#M38214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I never use an arcpy tool in a loop. They are not designed to do that.&lt;/P&gt;&lt;P&gt;You could assemble your list of FIDS into a list, convert to a string and use a SQL "IN" statement to select in one step.&lt;/P&gt;&lt;P&gt;Faster, easier to understand, easier to debug and easier to create.&lt;/P&gt;&lt;P&gt;Why do you need to check if the parcel id exists? If it doesn't it won't matter in an IN list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# list of valid ids (do a regular expression in a list comprehension to validate&lt;/P&gt;&lt;P&gt;print(len(FIDS)) # just to see how many, limit 50,000 should be fine, if more then partition, can use 1M if integers not strings&lt;/P&gt;&lt;P&gt;the_list = str(tuple(FIDS)).replace('u','') # strip off any unicode tags&lt;/P&gt;&lt;P&gt;sql = "{} in {}".format(the_field,the_list)&lt;/P&gt;&lt;P&gt;print (sql[0:40], sql[-40:]) # check syntax&lt;/P&gt;&lt;P&gt;# make sure FID is indexed for performance&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;arcpy&lt;SPAN class=""&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class=""&gt;(&lt;/SPAN&gt;parcels&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;"ADD_TO_SELECTION"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; sql&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 09:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488751#M38214</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2017-01-27T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488752#M38215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions, everyone. It definitely looks like it doesn't like being in a loop. Extracting it to a function and calling it in a loop results in longer run times (in this particular case), so there's something going on there that seems to confirm&amp;nbsp;the warnings about loops.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488752#M38215</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2017-01-27T16:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488753#M38216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is definitely a more elegant solution than mine. I'm doing a check with an explicit error because eventually I want to expose my script to the public through a geoprocessing service and I want to give meaningful feedback on errors.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488753#M38216</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2017-01-27T17:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488754#M38217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A comment on syntax.&amp;nbsp; With Make Table View or any of the similar tools, the second field is the name of the layer to be created, just the name.&amp;nbsp; In your code above, you are using &lt;SPAN&gt;"in_memory/temp", which appears to work, but I suggest against adding "in_memory/" in front of the name for 2 reasons:&amp;nbsp; 1)&amp;nbsp; it doesn't do anything, i.e., views are already created in memory and adding "in_memory/" doesn't really do anything besides make the name of the view longer, and 2) adding "in_memory/" implies a workspace is needed by the tool when it isn't, which creates readability and potential code maintenance issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488754#M38217</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-01-27T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488755#M38218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 17:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488755#M38218</guid>
      <dc:creator>Karyn_Kerdolff</dc:creator>
      <dc:date>2017-01-27T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why would my additional MakeTableView_management() calls take drastically longer?</title>
      <link>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488756#M38219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is the direction I would go too. It seems unnecessary to have this in a loop. Here's my take.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;TID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tuple&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; TID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
where &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{} in{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TID_field&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeTableView_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parcels&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"parcels_tblvw"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; where&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"parcels_tblvw"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-would-my-additional-maketableview-management/m-p/488756#M38219</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-11T21:30:01Z</dc:date>
    </item>
  </channel>
</rss>

