lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Engels" <reng...@ix.netcom.com>
Subject RE: FieldsReader synchronized access vs. ThreadLocal ?
Date Thu, 18 May 2006 01:37:03 GMT
Does it use a ThreadLocal for the FieldsReader? If so, that is somewhat less
efficient (than using a ThreadLocal on the streams in the FieldsReader - as
the modified code I supplied does).

In either case it is better than the synchronization on the document() call.
It is just not needed.

-----Original Message-----
From: Grant Ingersoll [mailto:gsingers@syr.edu]
Sent: Wednesday, May 17, 2006 7:29 PM
To: java-dev@lucene.apache.org
Subject: Re: FieldsReader synchronized access vs. ThreadLocal ?


Somewhat related, the Lazy Field loading patch uses a ThreadLocal on the
FieldsReader to handle.  It is issue 545 in Jira.

Yonik Seeley wrote:
> On 5/17/06, Robert Engels <rengels@ix.netcom.com> wrote:
>> If you run a concurrent searches over a million documents, returning
>> only
>> the matching 500 of each.
>
> There's the difference... we pretty much never retrieve 500 documents.
> We retrieve exactly the number needed to display a page of search
> results (typically 10 to 25).
>
> -Yonik
> http://incubator.apache.org/solr Solr, the open-source Lucene search
> server
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

--

Grant Ingersoll
Sr. Software Engineer
Center for Natural Language Processing
Syracuse University
School of Information Studies
335 Hinds Hall
Syracuse, NY 13244

http://www.cnlp.org
Voice:  315-443-5484
Fax: 315-443-6886


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


---------------------------------------------------------------------
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