Three performance improvements:
* for simple cases like User.last and User.order('name desc').last no need to perform Array#join operation. * Instead of performing String#blank? do Array#empty? * no need to create variable relation
Showing
想要评论请 注册 或 登录