You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been experiencing delays creating libraries on sites with over 1000 libraries already in place. The delay is due to CSOM requests limits being hit, which in turn results in a wait time. We saw library creation jump from 30 seconds on a small site, to over 10 minutes on a large site.
This has been tracked down to the 'RebuildListTokens' method, which pulls information in for all libraries on the site and is called multiple times during a library only template provisioning.
I have made a change to RebuildListTokens to also accept a ListInstanceCollection parameter, to limit the List Token to only those that are being provisioned in the instance of a list/library provisioning template step.
This has been tested and has resolved the delay issue, with library creation on large sites back to 30 seconds, and the library is still created correctly with no issues to note.
From my initial investigations I cannot determine the need for ALL lists to be retrieved in this way during list creation, and targeting just those being templated achieved the same result.
Could someone please advise the reason for RebuildListTokens pulling all lists into cache, and where/what the need for the information may be?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have been experiencing delays creating libraries on sites with over 1000 libraries already in place. The delay is due to CSOM requests limits being hit, which in turn results in a wait time. We saw library creation jump from 30 seconds on a small site, to over 10 minutes on a large site.
This has been tracked down to the 'RebuildListTokens' method, which pulls information in for all libraries on the site and is called multiple times during a library only template provisioning.
I have made a change to RebuildListTokens to also accept a ListInstanceCollection parameter, to limit the List Token to only those that are being provisioned in the instance of a list/library provisioning template step.
This has been tested and has resolved the delay issue, with library creation on large sites back to 30 seconds, and the library is still created correctly with no issues to note.
From my initial investigations I cannot determine the need for ALL lists to be retrieved in this way during list creation, and targeting just those being templated achieved the same result.
Could someone please advise the reason for RebuildListTokens pulling all lists into cache, and where/what the need for the information may be?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions