I am currently creating a large number of SharePoint folders in a list (e.g. ~ 800 folders), with each folder containing a different number of items. The way this is currently done is that it programmatically reads the types of content, elements, event listeners and those who love the same folder from another network, and then creates the same folder on the current network .
This worked reasonably well and fast in the dev environment. However, when it enters an environment with WFE and farms, it slows down significantly. I checked that there are no leaks in the code, and that the code follows the best SharePoint coding methods.
I am currently looking at it at the code level. From your experience, are there any effective ways to create a large number of folders, lists, and SharePoint items?
EDIT: I am currently using the SharePoint API, but will look at the transition to using the web service in the future. I am interested in looking at both options. The code, its just a general reading of the folder and its content types plus items and their data, then create the same folder in the same list with the same content types, and then copy the items using the patch update. I want to know if there are more efficient ways to do this.
Thank.
source
share