AnsweredAssumed Answered

Multiple Editor Cursors on Same Table

Question asked by boyle.matt on Feb 19, 2018
Latest reply on Feb 20, 2018 by bixb0012

Is it possible to have multpile arcpy.da.Editor cursors run on the same enterprise feature class / table simultaneously?  I have a few scripts that are setup to insert a row into the same table.  There are times when a script may run longer than expected and there will be multiple scripts running at the same time.  Through testing it seems like the first script will not have an issue and insert a row without a problem, however, the second script may (or may not) throw an error on startEditing().

 

This dataset is versioned, so I'm using startEditing(True, True) for the parameters.  I do use del to delete the Editor cursor once stopEditing() has finished.

 

I'm wondering a couple things:

1) First of all, is having multiple arcpy.da.Editor instances running on the same table an issue?

2) Is startEditing(True, True) the correct / recommended set of parameters to use?

Outcomes