-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Slow performance: up to 10s per page #1725
Comments
Can you try to run a Before and after running that command you can list the index files with |
Thank you for the tip. The number of files decreased from 20 to 6 and the total size of the directory from 62M to 56M. I guess we need to run that command on a regular basis. |
@sebix but you hopefully don't run moin as cgi? With a persistent python/moin2 wsgi process, 2s sounds way too much for a normal/simple page. Of course, on special pages and pages with expensive macros, load time depends very much on what is actually done there. |
The setup uses apache2 with WSGI.
The mentioned load times were all for simple pages with markdown or text only, without macros. |
Is there an easy way to disable that people can update the wiki? Or: What happens if somebody updates it while the command runs? |
No, I don't know of any other way to disable updates other than stopping the web server. In the case of optimize-index, this shouldn't really require an offline state, but I would always recommend running it at off-peak times. |
@sebix, can you please test again with the latest update? In the last few days, some improvements have been made to speed up simple items. Perhaps we can close this issue for the moment? Do not forget to clear the browser cache before testing with the latest version. |
@sebix, are you using the discussion feature: If not, you can deactivate the feature with following additional setting in wikiconfig.py:
This will save some additional index queries. |
Yes, the performance is slightly better: 1.8s -> 1.7s.
yes, that brings another small improvement of 1.7s -> 1.6s |
Note, even that is a slow system 1.6 seconds is still too slow for a tiny production wiki. If there is a linear dependency on the number of pages, it will only grow. Just from the technical structure, there shouldn't be an increasing effort for accessing one page depending on the total number of pages. |
The load time of one of our wikis has significantly decreased over time as more and more pages were added. The wiki still has only 69 pages, but the load times vary between 2s and 10s, which significantly reduces the user experience.
On the same server, we have an even smaller wiki with the same code base and only 13 pages, with load times of 0.7-1.7s.
Because of this correlation, we guess that the performance degradation is related to the number of pages.
Are there any performance-related things to improve in the settings?
Are the any logging/debugging options to investigate the cause?
We are currently on version 5d33343
The text was updated successfully, but these errors were encountered: