search for: find_by_pid_and_chain_id

Displaying 1 result from an estimated 1 matches for "find_by_pid_and_chain_id".

2008 Oct 08
1
Memory leak problem
...a large amount of data i run out of memory. File.open("#{RAILS_ROOT}/public/files/Neighborsville.TXT").each() do |line| @stringArray = line.split("|") @i += 1 puts @i @pid = @stringArray[0] @chain_id = @stringArray[1] @business = Business.find_by_pid_and_chain_id(@pid,@chain_id); #Check PID + CHAIN_ID @business.pid = @stringArray[0] @business.chain_id = @stringArray[1] @business.cityname = @stringArray[17] @business.state = @stringArray[18] @business.business = Business.find_by_pid_and_chain_id(@pid,@chain_id); @bus...