<?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: It appears &amp;quot;in_memory&amp;quot; is not really in memory. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755130#M58233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using Background Processing?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure the interactive Python window in ArcCatalog is a background process. This would explain the temporary file geodatabase on disk. Are all 'in_memory' feature classes stored in this way for background processes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 11:40:17 GMT</pubDate>
    <dc:creator>DougMcGeehan</dc:creator>
    <dc:date>2012-06-13T11:40:17Z</dc:date>
    <item>
      <title>It appears &amp;amp;quot;in_memory&amp;amp;quot; is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755126#M58229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have ArcCatalog 10.0 from the ArcGIS Desktop 10 SP4 suite. Just now, I pulled up the interactive Python window to test some code out in the application's interpreter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; result = arcpy.CreateFeatureclass_management(out_path="in_memory", out_name="in_memory_junk")
&amp;gt;&amp;gt;&amp;gt; type(result)
&amp;lt;class 'arcpy.arcobjects.arcobjects.Result'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; print str(result)
&amp;lt;Result '&lt;STRONG&gt;C:\\Users\\DMCGEE~1\\AppData\\Local\\Temp\\2\\j6cc4de20957342a3aa8cda7d65b8cc7a.gdb\\in_memory_junk&lt;/STRONG&gt;'&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wasn't expecting to see the result of CreateFeatureclass to reside a temporary file geodatabase in the C:\Users\DMCGEE~1\AppData\Local\Temp\2\ directory. However, it's there, as indicated in the screenshot below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15140[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w0000005s000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation for in-memory workspaces&lt;/A&gt;&lt;SPAN&gt; indicates that "when data is written to the in-memory workspace, the computer's physical memory (RAM) is consumed", but the fact that the temporary file geodatabase is located in a temporary directory makes me think otherwise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755126#M58229</guid>
      <dc:creator>DougMcGeehan</dc:creator>
      <dc:date>2021-12-12T08:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755127#M58230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in_memory workspace is in memory with a temporary reference to a directory on disk. It should disappear once you close the process it was opened in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 18:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755127#M58230</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-06-12T18:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755128#M58231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't been working with ArcGIS for long, so I haven't had the opportunity to test in-memory feature classes to witness any measurable differences. I'll take your word for it, but the idea of a file on disk referencing data in memory doesn't seem very feasible without some sort of low-level process actively translating file-reads to RAM-reads.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 18:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755128#M58231</guid>
      <dc:creator>DougMcGeehan</dc:creator>
      <dc:date>2012-06-12T18:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755129#M58232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using Background Processing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Processing in the background means sending the features you want to process over to another process and then getting a result back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because its another process we have to persist them to disk for ArcMap to read them on the way back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres the same command with BG on and BG off (foreground processing/processing inside ArcMap):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.CreateFeatureclass_management("in_memory", "foooo")
&amp;lt;Result 'C:\\Users\\kevi5105\\AppData\\Local\\Temp\\arcC8DF\\jbf5bcaebf45a4c28bfe57a0e27b6e65a.gdb\\foooo'&amp;gt;
&amp;gt;&amp;gt;&amp;gt; arcpy.CreateFeatureclass_management("in_memory", "foooo2")
&amp;lt;Result 'in_memory\\foooo2'&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755129#M58232</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2021-12-12T08:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755130#M58233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using Background Processing?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure the interactive Python window in ArcCatalog is a background process. This would explain the temporary file geodatabase on disk. Are all 'in_memory' feature classes stored in this way for background processes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 11:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755130#M58233</guid>
      <dc:creator>DougMcGeehan</dc:creator>
      <dc:date>2012-06-13T11:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755131#M58234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To say the Python window is a background process isn't really correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See this link, hopefully it'll explain background processing. You can enable/disable it and see the different results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00210000003q000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00210000003q000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755131#M58234</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-06-13T14:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: It appears "in_memory" is not really in memory.</title>
      <link>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755132#M58235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using Background Processing?&lt;BR /&gt;Processing in the background means sending the features you want to process over to another process and then getting a result back.&lt;BR /&gt;Because its another process we have to persist them to disk for ArcMap to read them on the way back.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why o why didn't ESRI document this crucial factor in getting in_memory to work in the Help file???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really can not find it in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w0000005s000000.htm"&gt;main in_memory Help topic&lt;/A&gt;&lt;SPAN&gt;. This issue regarding background processing should be added under the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"The following considerations must be made in deciding to write output to the in-memory workspace"&lt;/SPAN&gt;&lt;SPAN&gt; text line. I have been struggling with this issue too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/it-appears-amp-amp-quot-in-memory-amp-amp-quot-is/m-p/755132#M58235</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2012-06-20T13:12:01Z</dc:date>
    </item>
  </channel>
</rss>

