Forum: Ferret Ferret causing "out of memory"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sergei S. (Guest)
on 2006-05-18 00: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 = Ferret::Index::Index.new(:path =>
"#{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.
David B. (Guest)
on 2006-05-18 10:53
(Received via mailing list)
Thanks Sergei, Well spotted. This will be fixed in the next version.

Cheers,
Dave
This topic is locked and can not be replied to.