whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Speed up by preloading
Date Wed, 27 May 2020 12:47:49 GMT
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 <sebb@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()
 


Mime
View raw message