https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-05-22T13:49:12ZRedmineRedmine - Defect #10992: Issue details page loads slowly with lots of watchershttps://www.redmine.org/issues/10992?journal_id=383622012-05-22T13:49:12ZDuane Hughes
<ul></ul><p>I should also add that this is not just to do with rendering the watchers checkboxes. Even if the user does not have rights to view the watchers list, add or delete watchers, the page still loads at the same rate.</p> Redmine - Defect #10992: Issue details page loads slowly with lots of watchershttps://www.redmine.org/issues/10992?journal_id=384362012-05-24T17:10:44ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>File</strong> <a href="/attachments/7645">removes_watcher_checkboxes.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7645/removes_watcher_checkboxes.patch">removes_watcher_checkboxes.patch</a> added</li></ul><p>Now that Redmine 1.4 offers a "Search for watchers" link that opens a dialog box to add watchers, you could simply remove the initial checkboxes from the view (see attached patch). It should load faster, can you confirm?</p>
<p>Maybe it should be made the default behaviour.</p> Redmine - Defect #10992: Issue details page loads slowly with lots of watchershttps://www.redmine.org/issues/10992?journal_id=384442012-05-24T19:42:52ZDuane Hughes
<ul></ul><p>Hi,</p>
<p>Thanks for the patch, it does indeed load a little faster. It seems to shave off two seconds on average. I also like that watchers are shown once you select them, but the whole list does not render. I think it makes the page look tidier, especially if you have a lot of potential watchers.</p>
<p>Here are the timings I get now. They're still slow, but markedly improved:</p>
<pre>
Processing IssuesController#new (for x.x.x.x at 2012-05-24 20:31:51) [GET]
Parameters: {"controller"=>"issues", "action"=>"new", "project_id"=>"support"}
Rendering template within layouts/base
Rendering issues/new
Completed in 3501ms (View: 3199, DB: 185) | 200 OK [http://servername/support/projects/support/issues/new]
Processing IssuesController#new (for x.x.x.x at 2012-05-24 20:32:23) [GET]
Parameters: {"controller"=>"issues", "action"=>"new", "project_id"=>"support"}
Rendering template within layouts/base
Rendering issues/new
Completed in 3279ms (View: 3036, DB: 120) | 200 OK [http://servername/support/projects/support/issues/new]
</pre>
<p>So it seems there is still some rendering going on somewhere? As I mention, I've removed all plugins, and when removing the 820 users and leaving only 10 or so as reporters the form loads in a second or less. Thanks for your interest and help so far.</p> Redmine - Defect #10992: Issue details page loads slowly with lots of watchershttps://www.redmine.org/issues/10992?journal_id=384952012-05-26T12:31:04ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>The 820 users must be rendered in the 'Assignee' drop down as well. It may be the issue.</p>
<p>What response time do you get if you keep the 820 members but uncheck "Issues can be assigned to this role" on their role (in Administration -> Roles)? They should not appear in the drop down.</p> Redmine - Defect #10992: Issue details page loads slowly with lots of watchershttps://www.redmine.org/issues/10992?journal_id=385082012-05-28T07:10:28ZDuane Hughes
<ul></ul><p>Hi, yes, that was the case. It helped by a further 2 seconds.</p>
<pre>
Rendering template within layouts/base
Rendering issues/new
Completed in 2000ms (View: 1870, DB: 3)
</pre>
<p>Thanks for the suggestion.</p>