On 6/8/07, Walter Ferrara (JIRA) <[EMAIL PROTECTED]> wrote:   [
Walter Ferrara commented on SOLR-20:
------------------------------------

Latest rev works perfectly thanks.
I've been making some time test with this client (only searching), and overall 
results show high times: this maybe due to my minimal knowledge on solr, but 
solr seems fast, is data-receiving/parsing on client that seems slow. Even when 
solr report 0ms (due to cache it I presume) it still take 200ms to get results 
(QueryResponse .getElapsedTime()).


In a big index, it could be due to document retrieval.
Solr streams the responses back, so the QTime does not include the
time to write back the response (including retrieval of stored
fields).  That time is normally a constant with respect to the number
of retrieved documents though, so QTime is still really useful for
measuring actual "index query" time.
To get a better sense of the true total time, access logs of the
servlet container can be used.

-Yonik


I'm using this code:

SolrQuery query = new SolrQuery(queryString);
CommonsHttpSolrServer server = new 
CommonsHttpSolrServer("http://localhost:8983/solr/";);
QueryResponse response = server.query(query);
SolrDocumentList list = response.getResults();

The slowdown seems to be in client.executeMethod(method) 
(CommonsHttpSolrServer) Any way to speed up (assuming I'm not totally wrong on 
how to use this client...)? Reusing same http connection for multiple queries? 
Playing with MultiThreadedHttpConnectionManager helped a bit, but doesn't seems 
the solution

Reply via email to