I'm currently writing some software in which I just want to know the amount of has_many items a record has. I am under the impression that doing:
Will pull all the "hasmanys" from the database, so it would be a bog on the server if I were to do this? Or if I called this would it only call a COUNT() query? (which I am trying to do)Code:something.hasmanys.length




Bookmarks