Hey there.
Can someone told me, why this is not marked as extremely bad?
Is there any real reason to load all users into memory?
I can't even imagine. It would be nice if you show me real-case usage of this example.
# good - if you really need to load all users into memory
User.all.length
Hey there. Can someone told me, why this is not marked as extremely bad? Is there any real reason to load all users into memory? I can't even imagine. It would be nice if you show me real-case usage of this example.
length method