プロジェクト

全般

プロフィール

Vote #70844

未完了

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

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
-
開始日:
2011/10/24
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
0
issue_org_id:
9466
author_id:
42632
assigned_to_id:
0
comments:
1
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
35
ステータス-->[New]

説明

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.


journals

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリIssues_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0