Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Multiple threads adding SPFolder(s) to the same SPDocumentLibrary

$
0
0

We have to convert 10.5 mio documents to Sharepoint 2010.
This is done by calling a custom made WCF service - hosted in Sharepoint. The WCF Service creates a folder for every SSN and all documents for that SSN goes into the just created folder.

The migration application is a multi threaded application which can be configured to spawn several threads that uploads documents to the WCF service in Sharepoint.

Our experience is that different threads CANNOT add SPFolder(s) to different instances of SPDocumentLibrary representing the same Document Library at the same time.

We get several "Folder cannot be created....." and it seems to occur every time different threads tries to add a SPFolder to the very same SPDocumentLibrary

Can this really be true???
If true - what happens if the WCF service is hosted on different IIS servers??
If this is by design - any suggestions on how to make SP2010 scalable?

When having 10.5 mio. documents - its not acceptable to be single threaded ;-)

Any help is appreciated

Regards Morten




Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>