SubPointSolutions / spmeta2

SharePoint artifact provision for .NET platform. Supports SharePoint Online, SharePoint 2019, 2016 and 2013 via CSOM/SSOM.
http://subpointsolutions.com/spmeta2
134 stars 56 forks source link

Incremental provision is slow on ContentTypeFieldLinkDefinitions #1065

Open SubPointSupport opened 7 years ago

SubPointSupport commented 7 years ago

As per @andreasblueher feedback, ContentTypeFieldLinkDefinitions seems to have performance issues with incremental provision. This concert was also raise by a few other people.

Initially, it might have to do with:

The issue extremely hard to catch due to many variables involved. Internal metrics over provision operation is a must: Introduce model provision metrics - time, queries, traffic #1007

Another level to test is a large amount of content, in particular, tons of webs/list where the content type is used.

Finally, incremental provision need to be enhanced so that either one of these is true:

That increases complexity of the issue as incremental provision needs to be regressed and properly covered with regression testing once a better diff calculations are introduced.

https://github.com/SubPointSolutions/spmeta2/issues/553#issuecomment-314761611

andreasblueher commented 7 years ago

Just some more information from my side here. The ContentTypes I used which appeared to have no benefit from incremental updates contained about 50 columns. There are only 5 custom ContentTypes in this web and the 50 column CT is only used on one list.

SubPointSupport commented 7 years ago

Makes sense, thanks @andreasblueher