You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by John Wang <jo...@gmail.com> on 2007/03/09 08:22:35 UTC
FieldCache: flush cache explicitly
I think the api should allow for explicitly flush the fieldcache.
I have a setup where new readers are being loaded very some period of
time. I don't want to rely on Java WeakHashMap to free the cache, I
want to be able to do it in a deterministic way.
It would be great if this can be added to Lucene, I can create a bug
if the Lucene gods agree to it :)
Thanks
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: FieldCache: flush cache explicitly
Posted by Ramana Jelda <ra...@ciao-group.com>.
Yeap. I strongly support John.
I knew when I reopen indexes. Then what is the reason to wait for garbage
collector..
And that too, FieldCache uses WeakHashMap and that may lead some memory
leaks.
Jelda
> -----Original Message-----
> From: John Wang [mailto:john.wang@gmail.com]
> Sent: Friday, March 09, 2007 8:23 AM
> To: java-user@lucene.apache.org
> Subject: FieldCache: flush cache explicitly
>
> I think the api should allow for explicitly flush the fieldcache.
>
> I have a setup where new readers are being loaded very some
> period of time. I don't want to rely on Java WeakHashMap to
> free the cache, I want to be able to do it in a deterministic way.
>
> It would be great if this can be added to Lucene, I can
> create a bug if the Lucene gods agree to it :)
>
> Thanks
>
> -John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org