Find :all and RAM memory

Say you have a table with a very high number or entries and you
perform a search that would bring out a lot of results like this:

a = Ad.find :all

My question is how is this stored in memory? can this crash your
server or freeze it or is it safe to use in production?

On Sep 11, 9:35 am, Abel [email protected] wrote:

Say you have a table with a very high number or entries and you
perform a search that would bring out a lot of results like this:

a = Ad.find :all

My question is how is this stored in memory? can this crash your
server or freeze it or is it safe to use in production?

Nothing magic is happening so this could quite conceivably cause the
ruby process to run out of memory.

Fred