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 Mark Miller <ma...@gmail.com> on 2006/07/12 18:33:26 UTC

Sort Cache

I am going to be working with a medium index of 200k to 1m documents.
Occasionaly, there will be single document corrections applied to this
index. I am worried about this action clearing my sort buffers. I saw the
method of priming another searcher, but if you have a bunch of fields that
may be sorted that could take longer than I want (I am trying to get as
close to realtime as possible). Would it make any sense in trying to save
the sort cache, insert the new doc in that (whatever that entails, I don't
know), and then pass the sort cache to a new searcher? Or something along
those lines...?

Does that sound completely crazy or do you have a much better way for me to
try? Or mabye I am worrying about nothing at all...

Thanks for comment,

Mark

Re: Sort Cache

Posted by Chris Hostetter <ho...@fucit.org>.
: close to realtime as possible). Would it make any sense in trying to save
: the sort cache, insert the new doc in that (whatever that entails, I don't
: know), and then pass the sort cache to a new searcher? Or something along
: those lines...?

as crazy as this sounds -- it's even harder then you think.
deleting and re-adding a single document to your index can cause the
docIds of other documents to change as a result of segment merging -- so
reusing your FieldCache andjust making small modifications to it really
isn't feasible.

: try? Or mabye I am worrying about nothing at all...

Unless you have existing code and hard numbers demonstrating a
performance problem -- I wouldn't worry about it.  In my experience with
Solr, warming FieldCaches generaly only takes a few seconds. (It's
when I warm up 16,000 Filters that it takes a minute or two)



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org