summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-05-19 21:17:55 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2014-05-19 21:17:55 +0000
commit1914d1a15984d5f255d76ba3d40e52b290c03a83 (patch)
treefcca4b8ac000794f486a169ca1e014d68ab509c2 /test/unit
parenteaac0eff082e14fe5b87f1c9c2845e4077e1fbed (diff)
downloadredmine-1914d1a15984d5f255d76ba3d40e52b290c03a83.tar.gz
redmine-1914d1a15984d5f255d76ba3d40e52b290c03a83.zip
Improve performance of Principal.member_of scope
The 'join' turns to be slow for large numbers of members (>20k). Using a sub-query like in Principal.not_member_of is more efficient and performance is the same for smaller values. git-svn-id: http://svn.redmine.org/redmine/trunk@13139 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
0 files changed, 0 insertions, 0 deletions