You should use "User.count", which will do something like "select count(*) from users".
"Users.all.count" will needlessly read in all users into memory and then return a count. That might work OK for 1000 users, but beyond that?
"Users.all.count" will needlessly read in all users into memory and then return a count. That might work OK for 1000 users, but beyond that?