Ruby on Rails, Activerecord, MySQL, Database.
we only care to know if a record exists, but don’t need to actually do anything with that record. Use exists? instead of present? . Prefer `ActiveRecord::Relation#size` over `ActiveRecord::Calculations#count` Assuming users is an ActiveRecord::Relation, both users.count and users.size return the