This is a common pitfall -- User.all.size loads ALL USERS out of the database, and then does an Array#size method call on them. It's much faster to do an actual sql count query: ``User.count/100``