Defect #9466

Watchers list appers very slow on issue page after upgrade from 1.0.1 to 1.2.1

Added by Sergey Besedin almost 11 years ago. Updated almost 11 years ago.

Status:NewStart date:2011-10-24
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:-
Resolution: Affected version:1.2.1

Description

I have ~90 users. In production mode when i press "add watcher", select-tag appears after 20 sec loading.

Problem with file: vendor/plugins/acts_as_watchable/lib/acts_as_watchable.rb:

def addable_watcher_users
  users = self.project.users.sort - self.watcher_users
  if respond_to?(:visible?)
    users.reject! {|user| !visible?(user)}
  end
  users
end

Recursive visibility check make mass sql-queries, so i just cut it off.

Here my logs before and after and patch.

watchers-no-visibility-check.log (2.52 KB) Sergey Besedin, 2011-10-24 19:20

watchers-visibility-check.log (64.6 KB) Sergey Besedin, 2011-10-24 19:20

watchers.patch Magnifier (632 Bytes) Sergey Besedin, 2011-10-24 19:20

History

#1 Updated by Etienne Massip almost 11 years ago

  • Category set to Issues

Also available in: Atom PDF