I use the oink gem to profile the memory usage of the application, and I get some strange output, I don’t understand.
My homepage loads several apartments using Apartment.where(visible: true)
When I run this request in the console Apartment.where(visible: true).count, I get 8.
But when I load the main page, which should load the same 8 apartments, my Oink magazines say:
Instantiation Breakdown: Total: 180 | Apartment: 47 .....
Do you have any ideas where these additional apartments may appear?
Thanks Uri
source
share