speed up user instantiation

This commit is contained in:
Graham Knop 2010-04-18 18:55:38 -05:00
parent 13589977f2
commit a7da8edde4

View file

@ -1075,7 +1075,8 @@ sub new {
# Fill in dataDefault
my $default = $session->db->buildHashRef(
"SELECT fieldName, dataDefault FROM userProfileField"
"SELECT fieldName, dataDefault FROM userProfileField", [],
{ noOrder => 1 },
);
for my $key (keys %profile) {
if (!defined $profile{$key} || $profile{$key} eq '') {