CompanyBook/massive_record — Issue #86: Memory consumption with find operation
Author: comcava
Created: 2012-02-03 12:21:57+00:00
State: open

Hi all,
I explore memory consumtion problem in this place

while !finish_inner do
####
...
####
l1 = LineItem.find(line_item_id)
l2 = LineItem.find(next_item_id)
####
...
####
end

memory will grow with speed 3Mb/each second
I ensure about release l1.l2 temp variables.

LineItem - usual data model with only text fields

Memory was released after exit in cycle
Unfortunatelly for me, my memory ending before cycle is done with Unable To allocate memory message.