Forum Discussion
Richard Rodgers
Oct 12, 2018Brass Contributor
Modern document library web part - slow?
Hi,
Has anyone else noticed that the document library web part on modern pages seems very slow compared to other web parts?
It is quite noticeable on a page as soon as I add the document library web part, and gets worse as I add more than one document library web part. Removing them speeds the page up considerably again.
I know this isn't particularly scientific, but I've checked it on both a standard-release and first-release tenant and have the same problem in both.
Additionally, I guess that this web part is marked as "preview" but even so I'd not expect it to noticeably slow down the page load - I don't know if anyone has information as to why it is still preview and when it might come out of preview?
Thanks in advance for your help.
Richard
- RoelVBCopper Contributor
This depends on the number of items in your document library.
For some reason the webpart does a lot of request to retrieve all data. Some of the requests wil return NO rows (depending on your filters/view).
So the problem here is the webpart's implementation. It retrieves items in "pages" (I guess 5.000 at a time), but for some reason it also returns empty pages.In this case, if you have a library with 500.000 items, it will take 100 requests to load every item. Even if there are just 10 items to display. There's even a chance that just one of the 100 responses contains items.
- Don't know for sure if there is a performance problem with the modern document library WebPart, but something it's definitively wrong because I'm seeing strange chache behaviors lately in same demo sites
- Richard RodgersBrass Contributor
Thanks - it does feel strange as the document libraries themselves load very quickly. It is just the document library web part which is slow to load.
It is particularly noticeable in Internet Explorer but also in Edge and Chrome.