Just curious, is there anyway to use memcache with a ferret index? Thanks, Ray -- Posted via http://www.ruby-forum.com/.
Bump.> Just curious, is there anyway to use memcache with a ferret index? > >Has anyone tried this out? Cheers! Patrick
On Tue, Jan 23, 2007 at 09:10:28AM -0500, Patrick Ritchie wrote:> Bump. > > Just curious, is there anyway to use memcache with a ferret index? > > > > > Has anyone tried this out?What exactly do you want to use memcached for in the context of ferret? Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
My guess would be as the place to store the index. -Ross. On 1/23/07, Jens Kraemer <kraemer at webit.de> wrote:> On Tue, Jan 23, 2007 at 09:10:28AM -0500, Patrick Ritchie wrote: > > Bump. > > > Just curious, is there anyway to use memcache with a ferret index? > > > > > > > > Has anyone tried this out? > > What exactly do you want to use memcached for in the context of ferret? > > Jens > > > -- > webit! Gesellschaft f?r neue Medien mbH www.webit.de > Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de > Schnorrstra?e 76 Tel +49 351 46766 0 > D-01069 Dresden Fax +49 351 46766 66 > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk >
On Tue, Jan 23, 2007 at 10:43:14AM -0500, Ross Singer wrote:> My guess would be as the place to store the index.this isn''t possible out of the box. But Ferret has an abstraction layer (Ferret::Store::Directory) that allows for in-memory or on-disk storage of an index, so it might be possible to write a memcached storage backend as well. Jens> On 1/23/07, Jens Kraemer <kraemer at webit.de> wrote: > > On Tue, Jan 23, 2007 at 09:10:28AM -0500, Patrick Ritchie wrote: > > > Bump. > > > > Just curious, is there anyway to use memcache with a ferret index? > > > > > > > > > > > Has anyone tried this out? > > > > What exactly do you want to use memcached for in the context of ferret? > >-- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Hi, Has anyone tried putting the Ferret index on a RAMdisk or some such to speed things up?> On Tue, Jan 23, 2007 at 10:43:14AM -0500, Ross Singer wrote: > >> My guess would be as the place to store the index. >> > > this isn''t possible out of the box. > > But Ferret has an abstraction layer (Ferret::Store::Directory) that > allows for in-memory or on-disk storage of an index, so it might be > possible to write a memcached storage backend as well. > > Jens > > >> On 1/23/07, Jens Kraemer <kraemer at webit.de> wrote: >> >>> On Tue, Jan 23, 2007 at 09:10:28AM -0500, Patrick Ritchie wrote: >>> >>>> Bump. >>>> >>>>> Just curious, is there anyway to use memcache with a ferret index? >>>>> >>>>> >>>>> >>>> Has anyone tried this out? >>>> >>> What exactly do you want to use memcached for in the context of ferret? >>> >>> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070123/928cf25a/attachment-0001.html
On Tue, Jan 23, 2007 at 11:22:13AM -0500, Patrick Ritchie wrote:> Hi, > > Has anyone tried putting the Ferret index on a RAMdisk or some such to > speed things up?Have you tried using RAMDirectory for in-memory storage of the index? There''s even the possiblity to clone a persistent index into a RAM-based one for faster access. However I can''t imagine you''ll get a huge speed increase - I''d guess with a modern operating system even a persistent index will end up completely buffered in RAM after some usage. Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
Jens Kraemer wrote:> On Tue, Jan 23, 2007 at 11:22:13AM -0500, Patrick Ritchie wrote: > >> Hi, >> >> Has anyone tried putting the Ferret index on a RAMdisk or some such to >> speed things up? >> > > Have you tried using RAMDirectory for in-memory storage of the index? > > There''s even the possiblity to clone a persistent index into a RAM-based > one for faster access. However I can''t imagine you''ll get a huge speed > increase - I''d guess with a modern operating system even a persistent > index will end up completely buffered in RAM after some usage. >Yes, but if it''s really big parts of it may be unbuffered if the machine is under high load... Would be nice to have a way to ensure that the entire index is always in memory. Thanks for the suggestions. Cheers! Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070123/728e626e/attachment.html