Forum: Ferret Ferret causing "out of memory"

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
28c65753eb8f8288f2d97c9d86fb5d02?d=identicon&s=25 Sergei Serdyuk (Guest)
on 2006-05-17 22:38
I am a bit puzzled. I am having issues with memory leaking away. It
seems to be related to searching documents by 'id' column value.

This is what I am doing:

cached_annotations = =>
"#{RAILS_ROOT}/db/ferret/tmp/annotations", :auto_flush => false)

100000.times { |x| doc=cached_annotations[x.to_s] }

Every 100000.times eats 100MB of memory.

I am on ferret 0.9.3 with C extentions. Ubuntu Linux is the OS.
B5e329ffa0cc78efbfc7ae2d084c149f?d=identicon&s=25 David Balmain (Guest)
on 2006-05-18 08:53
(Received via mailing list)
Thanks Sergei, Well spotted. This will be fixed in the next version.

This topic is locked and can not be replied to.