You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/05/27 12:47:49 UTC
[whimsy] branch master updated: Speed up by preloading
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 632ea0c Speed up by preloading
632ea0c is described below
commit 632ea0c59f2284e7ea0b711725d61094a3eb0d0c
Author: Sebb <se...@apache.org>
AuthorDate: Wed May 27 13:47:39 2020 +0100
Speed up by preloading
---
www/secretary/emeritus_check.cgi | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/secretary/emeritus_check.cgi b/www/secretary/emeritus_check.cgi
index eb62e6c..ed10124 100755
--- a/www/secretary/emeritus_check.cgi
+++ b/www/secretary/emeritus_check.cgi
@@ -12,6 +12,7 @@ require 'whimsy/asf/memapps'
require 'wunderbar'
exmembers = ASF::Member.emeritus.map {|id| ASF::Person.find(id)}
+ASF::Person.preload(['cn'], exmembers) # speed up
files = Hash[ASF::EmeritusFiles::listnames.map{|i| [i,'NAK']}]
nofiles = Hash.new()