New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All websites dashboard - improve performance when thousands of websites #6809
Comments
BTW: Paging does not really need to be implemented. A problem is rather that our API does not return eg the number of total websites, etc like:
Also I think the websites group plugin does need all the websites in the browser currently to aggregate the group stats correctly. Otherwise it would be easy to do |
+1 |
FYI: I just performed a test with 4k websites and the problem seems not to be the JS etc. The bigger problem seems to be server side even with browser archiving disabled it takes easily 15 seconds on the server. Even if we do use paging it would still need that time. I'll have a look to see if there's a quick fix possible to make it a bit faster. Maybe we'd have to create an archive for MultiSites.getAll as well (if possible, don't know) |
A lot of time is actually spent to generate the datatable, but also a lot of time is spent to format the datatable when having eg 4k rows (= 4k websites). So using |
+1 makes sense! |
…report. I tested it with 4k websites. The change made it only a couple of seconds faster but requesting 4k websites would still take 4-8 seconds even if only 10 sites of them are actually requested. For example before we did request each site 3 times (12k times in total and triggered 12k events etc) which should be no longer the case. The last `clearSiteCache` was there to free some memory but I think it shouldn't be problematic to remove it. Also I removed one 'sort' as a lot of time is wasted there. It should be in theory sorted afterwards anyway again. Need to see test results whether this change is good or not.
…ts in only one requested site but uses multi period
it may be complicated to fix and maintain the feature Website Groups, but It would be very nice to solve this performance issue for 3.0.0 or before! |
…nately this way it does not work as the sort would be wrong
…nately this way it does not work as the sort would be wrong
Currently on instance with really big number of websites (i.e. 20k+) Multisites dashboard tends to time out. It's caused by loading all sites into JS in one API call.
maybe there should be pagination implemented server-side so each API call only retrieves portion that would be displayed at one time to the user to speed up this view.
The text was updated successfully, but these errors were encountered: