Skip to content

SiteCollectionManager.GetSiteCollectionsWithDetailsAsync Pagination? #1235

Answered by Sean-LM
Sean-LM asked this question in Q&A
Discussion options

You must be logged in to vote

One of the first things the container does upon spin-up (it runs a console app) is begin gathering those sites. The out of memory exception was being thrown from within GetSiteCollectionsWithDetailsAsync, not during any post processing of the data (and thus loading additional things into memory.)

I went all the way to 4GB memory on the container but was still running out. I have since solved this issue (sorry for not coming back and updating) by implementing our own version of SiteCollectionEnumerator.GetWithDetailsViaTenantAdminHiddenListAsync which our code can call and accepts two new arguments: pageSize and nextHref.

The page size is parameterized in the CAML query: <RowLimit Paged='T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sean-LM
Comment options

Answer selected by Sean-LM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants