Defect #9466
Watchers list appers very slow on issue page after upgrade from 1.0.1 to 1.2.1
Status: | New | Start date: | 2011-10-24 | |
---|---|---|---|---|
Priority: | Normal | Due 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.
History
#1
Updated by Etienne Massip over 11 years ago
- Category set to Issues