AnsweredAssumed Answered

MultiThread: write multiple tables in the file geodatabase at same time?

Question asked by spring1990 on Dec 16, 2016
Latest reply on Dec 28, 2016 by spring1990

I used C# and ArcObjects to write 6 output tables in the same workspace. To improve the performance, I tried to do parallelization, each thread writing one table . Codes were pasted below.

 

 

Parallel.For(0, tableCount, k=>
{

      //write kth table

      writeTable(k);

}

 

But I got the error "can not acquire the lock....". It seems that workspace did not support multiple writing at the same time. Is there any other solutions? 

Outcomes