[ 
https://issues.apache.org/jira/browse/LUCENE-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735242#action_12735242
 ] 

Paul Smith commented on LUCENE-1749:
------------------------------------

You know what would be absolute icing on the cake here would be some way during 
the introspection by some code looking for large sort fields that perhaps can 
be discarded/unloaded as needed (programmatically).

What I'm thinking here is a use case we've come into where we have had to sort 
by subject.  Well the unique # subjects gets pretty large, and while we still 
need to support the use case, it'd be nice to be able to periodically 'toss' 
sort fields like this so they don't hog memory permanently while the 
IndexReader is still in memory.  (sorting by subject is used, just not often so 
a good candidate for tossing)

Because we have multiple large IndexReaders open concurrently, it'd be nice to 
be able to scan periodically and kick out any unneeded ones.

It's nice to be able to inspect and print out these, but even better if one can 
make changes based on what one finds.



> FieldCache introspection API
> ----------------------------
>
>                 Key: LUCENE-1749
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1749
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Hoss Man
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: fieldcache-introspection.patch, LUCENE-1749.patch, 
> LUCENE-1749.patch, LUCENE-1749.patch, LUCENE-1749.patch
>
>
> FieldCache should expose an Expert level API for runtime introspection of the 
> FieldCache to provide info about what is in the FieldCache at any given 
> moment.  We should also provide utility methods for sanity checking that the 
> FieldCache doesn't contain anything "odd"...
>    * entries for the same reader/field with different types/parsers
>    * entries for the same field/type/parser in a reader and it's subreader(s)
>    * etc...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to