-
Notifications
You must be signed in to change notification settings - Fork 100
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
Optimization of web GUI / adding an index on prev_id_session DB field #451
Comments
It sounds reasonable to me to add an index to a field used very often in a WHERE condition. |
I went further in my tests and it turns out that, even with this index added, web access are still between 2.5sec and 4.2sec (just to access a list homepage). I tried to empty the session_table and waooooh : access to the same web page takes from 0.4sec to 0.7sec :-) => I will do some further investigations to find out why the |
Yes please do check that task - this should be really working reliable 🙄 |
That task did not run since 2017 dec 15th :-(
I go on my investigations... |
I found out why the That bug has been fixed meanwhile. But it would still make sense to add an index on prev_id_session DB field... |
I agree with you on having an index on prev_id_session. Do you want to produce a PR for this change? |
I pulled a request: #460 |
While preparing our ugrade to Sympa 6.2.36 we noticed bad performances on every web request. I figured out that adding an index on prev_id_session DB field saves 1.2sec on every web request.
Version
6.2.36
Installation method
source package
While running NYTProf profiler I detected too much time spent on WWW::Session :
I then found out the DBI requests where the culprits :
On our server the session_table has 464712 entries ; the SQL query to load a session takes 1.4sec.
I then added on index on prev_id_session DB field ; the same SQL query now takes 0.2sec
=> I suggest you add an index on prev_id_session DB field
The text was updated successfully, but these errors were encountered: