Actions
Defect #9466
openWatchers list appers very slow on issue page after upgrade from 1.0.1 to 1.2.1
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
Actions