<?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 Multiprocessing &amp;amp;amp;amp; in_memory workspace - table writing conflicts? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/multiprocessing-amp-amp-amp-in-memory-workspace/m-p/718759#M55667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I have multiple processes working away, the sample posted at &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/09/26/distributed-processing-with-arcgis-%e2%80%93-part-1/"&gt;http://blogs.esri.com/esri/arcgis/2012/09/26/distributed-processing-with-arcgis-%e2%80%93-part-1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;makes it appear that you can write to a single table in_memory\identical&amp;nbsp; in all the processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That would suggest a separate copy of the workspace for each process, which I think it was Bruce Harold says in the comments. But frankly, I am still lost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's making me confused is the commentary in this thread&lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/35614/concurrent-use-of-in-memory-workspace-in-arcpy"&gt;http://gis.stackexchange.com/questions/35614/concurrent-use-of-in-memory-workspace-in-arcpy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which makes it seem like in_memory is shared across processes and is sort of like a "folder" in that you are OK to write to multiple tables as long as they have different names, but NOT to the same table name. Note, ths gis.stackexchange post is from 2011.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is whether a separate in_memory workspace is created for each process (so all processes end up writing to their own in_memory\table1 or whether it is shared, so you need to change the table names in_memory\table1, in_memory\table2, etc. or something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I should just code and test, but maybe my test will work but under the hood it is "unsafe."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 21:34:02 GMT</pubDate>
    <dc:creator>HarryBowman</dc:creator>
    <dc:date>2012-11-01T21:34:02Z</dc:date>
    <item>
      <title>Multiprocessing &amp;amp;amp; in_memory workspace - table writing conflicts?</title>
      <link>https://community.esri.com/t5/python-questions/multiprocessing-amp-amp-amp-in-memory-workspace/m-p/718759#M55667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I have multiple processes working away, the sample posted at &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/09/26/distributed-processing-with-arcgis-%e2%80%93-part-1/"&gt;http://blogs.esri.com/esri/arcgis/2012/09/26/distributed-processing-with-arcgis-%e2%80%93-part-1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;makes it appear that you can write to a single table in_memory\identical&amp;nbsp; in all the processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That would suggest a separate copy of the workspace for each process, which I think it was Bruce Harold says in the comments. But frankly, I am still lost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's making me confused is the commentary in this thread&lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/35614/concurrent-use-of-in-memory-workspace-in-arcpy"&gt;http://gis.stackexchange.com/questions/35614/concurrent-use-of-in-memory-workspace-in-arcpy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which makes it seem like in_memory is shared across processes and is sort of like a "folder" in that you are OK to write to multiple tables as long as they have different names, but NOT to the same table name. Note, ths gis.stackexchange post is from 2011.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is whether a separate in_memory workspace is created for each process (so all processes end up writing to their own in_memory\table1 or whether it is shared, so you need to change the table names in_memory\table1, in_memory\table2, etc. or something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I should just code and test, but maybe my test will work but under the hood it is "unsafe."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 21:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/multiprocessing-amp-amp-amp-in-memory-workspace/m-p/718759#M55667</guid>
      <dc:creator>HarryBowman</dc:creator>
      <dc:date>2012-11-01T21:34:02Z</dc:date>
    </item>
  </channel>
</rss>

