Hello Folks,
Have a doubt. I am in a project where Model gets bigger and bigger. Yes we
are breaking up into concerns, but what we are not sure of is weather this
code will get included in RAM when we call say b = Book.new or something,
thus making the Rails app occupy more memory.
The most bulk
AFAIK , On production mode, rails has a default configuration called
"eager_load" ( config.eager_load ) . This loads all the classes into the
RAM for faster access( cache ) . But for b1 = Book.new, b2 = Book.new , The
class and methods are not loaded twice. The object is created and occupies
RAM.
2 matches
Mail list logo