Performance expectations for large libraries (~110k items) and dashboard loading #652
What are you trying to do?I am trying to use the main dashboard to manage a large library of approximately 110,000 books. I expect the main page and the library counters (total books, series, authors) to load quickly or asynchronously after the initial scan is already finished, allowing for a smooth navigation experience. What's happening instead?Every time I access the main page, the UI takes about 30 seconds to load and often feels "stuck" or unresponsive until the book and series counts are displayed. Since this happens even when no active scan is running, I am not sure if this is the expected behavior for a library of this size or if there is a configuration issue on my end. It seems like the application might be performing a live database count/query on every page load instead of retrieving cached values or metadata. Is there any way to optimize this or is it a known limitation for collections of this scale? Your setupgrimmory: 2.3.0 Anything else that might help?No response Before submitting
|
Replies: 2 comments 21 replies
|
We don't exactly have data or test models on libraries that large. Contributors have already identified issues with hibernation and pagination in general which is affecting loading and I'm sure its worse on larger libraries. Some of those items are being addressed for next version and likely more updates in those areas to come. |
|
Yeah so your hunch is probably right, those counters are most likely just running a full COUNT query every single time you hit the page. At 110k books that's just going to be slow, there's no way around it until someone caches those values properly. |


@9acca9 look at the books request, 82MB in one shot, that's your 17 seconds right there. the app is just dumping your entire library on every load with zero pagination. the lazy thumbnails are just piling on after that.
nothing you can do on your end, this needs to be fixed in the app. but this screenshot is perfect evidence, worth posting as a separate bug report and tagging @obviouslyallie since they mentioned pagination is already being worked on.