Ilogeek / redmine_issue_dynamic_edit

Allows users to dynamically update (AJAX) issue's attributes from issue details page without any refresh (JIRA like)
http://www.redmine.org/plugins/redmine_issue_dynamic_edit
MIT License
134 stars 56 forks source link

_CONF_CHECK_ISSUE_UPDATE_CONFLICT feature leads to heavy load with multiple tabs opened #97

Closed paulbutenko closed 1 year ago

paulbutenko commented 1 year ago

When user opens lot of tabs with issues, each of them does request every 5 sec https://github.com/Ilogeek/redmine_issue_dynamic_edit/blob/master/assets/javascripts/issue_dynamic_edit.js#L264 even if tab is inactive.

for multiple users with multiple tabs these requests does lot of pressure to redmine.

might be improved by disabling request when tab is inactive.

kidhab commented 1 year ago

Unfortunately the update intevall interferes with complex issues: Tested with an issue that has more than 250 comments. This issue has a loading time of about 12 seconds. Within the loading time the plugin send another GET request to the webserver and the loop continues. This leads to a lot of application server processes that consume all CPU ressources. The Redmine instance is pratically unusable for the time a tab with this ticket is still open.

Ilogeek commented 1 year ago

Hello @paulbutenko and @kidhab

Thank you for your feedback and solution for the check mechanism issue. I tried to fix this with 2 improvements :

Feel free to come back to me if you have any problem with this update

If you find the plugin helpful, take a minute to star it on Github and rate it 5 stars on http://www.redmine.org/plugins/redmine_issue_dynamic_edit 👍