Is there a way to tell Ferret (or AAF) to read an entire index into
memory, for faster searching? I have small index (3-4 MB) that could be
kept in memory. Or does Ferret do that automatically?
Thanks,
–Paul
Is there a way to tell Ferret (or AAF) to read an entire index into
memory, for faster searching? I have small index (3-4 MB) that could be
kept in memory. Or does Ferret do that automatically?
Thanks,
–Paul
Hi!
On Fri, Feb 01, 2008 at 08:49:22PM +0100, Paul L. wrote:
Is there a way to tell Ferret (or AAF) to read an entire index into
memory, for faster searching? I have small index (3-4 MB) that could be
kept in memory. Or does Ferret do that automatically?
Ferret has an implementation if the Directory interface [1] for
in-memory
storage, however you won’t gain much speed (if any) by using it, since
most operating systems will keep the index in file system buffers anyway
once it has been used the first time.
[1]
http://ferret.davebalmain.com/api/classes/Ferret/Store/RAMDirectory.html
Cheers,
Jens
–
Jens Krämer
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs