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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]