[KinoSearch] serializing safely

Hans Dieter Pearcey hdp at pobox.com
Thu Jun 14 04:50:30 PDT 2007


On Wed, Jun 13, 2007 at 09:48:49PM -0700, Marvin Humphrey wrote:
>   # load searcher once, outside loop
>   my $searcher = KinoSearch::Searcher->new(
>      invindex => Schema->open('/path/to/invindex'),
>   );
> 
>   while ( my $cgi = CGI::Fast->new ) {
>      process_search();
>   }
> 
> If that doesn't work for you, can you you please illustrate how your  
> app differs?

I had been thinking of putting it into an Apache::Session.

Will your suggestion survive a fork usefully?  I don't know what's in
Searcher's guts.

My app primarily differs in that I was planning on having many invindexes, two
or three per user, so opening them all at program start would probably be
inefficient (there are several hundred of them).

hdp.



More information about the kinosearch mailing list