lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: FieldCacheImpl concurrency
Date Fri, 12 Feb 2010 14:57:21 GMT
On Fri, Feb 12, 2010 at 1:50 AM, Shay Banon <kimchy@gmail.com> wrote:
> On Thu, Feb 11, 2010 at 5:41 PM, Yonik Seeley <yonik@lucidimagination.com>
>> It really shouldn't be heavily used.
>> For a sorted search, get() is called once per segment in the index.
>> There is no synchronization to retrieve per-document values.
>
> Sorting is not the only reason why FieldCache would be used...

Of course... it was just an example.  But any other uses are going to
still be per-segment lookups, hence the synchronization during the
lookup is very unlikely to be a bottleneck (or even noticeable).  In
that case, adding a new jar for it doesn't seem warranted.

-Yonik
http://www.lucidimagination.com

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


Mime
View raw message