Yes I do computing the same DocSet. Should it be the problem? Is any way to solve it? In general in each thread I ran the same query and add different Filter Query.
----- Original Message ---- From: Chris Hostetter <[EMAIL PROTECTED]> To: Solr User <solr-user@lucene.apache.org> Sent: Monday, February 25, 2008 2:19:02 AM Subject: Re: Threads in Solr : I was thinking may be I could run those queries not one by one but in : parallel, in separate threads. But it appears that it takes longer than : to run queries one by one. : Do you have any idea why? Do you think the idea to run those queries in : separate threads is good in general? Are SolrIndexSearcher and : SimpleFacets thread safe? SolrIndexSearcher is threadsafe ... SimpleFacets should be thread safe, but i won't swear to it off the top of my head. without seeing exactly how you setup your threads, it's hard to guess ... in general multiple threads are only useful if you are io bound, or have hardware that can take advantage of parallelization (ie: multiple cores). but it's also possible that things take just as long because all of your threads wind up computing the same DocSets at the same time -- or block on generating the same FieldCache arrays at the same time. -Hoss