Project

General

Profile

Actions

Defect #9466

open

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

Added by Sergey Besedin over 12 years ago. Updated over 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2011-10-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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.


Files

watchers-no-visibility-check.log (2.52 KB) watchers-no-visibility-check.log Sergey Besedin, 2011-10-24 19:20
watchers-visibility-check.log (64.6 KB) watchers-visibility-check.log Sergey Besedin, 2011-10-24 19:20
watchers.patch (632 Bytes) watchers.patch Sergey Besedin, 2011-10-24 19:20
Actions #1

Updated by Etienne Massip over 12 years ago

  • Category set to Issues
Actions

Also available in: Atom PDF