The response times in a Solr request don't include the time to read stored fields (since the response is streamed) and doesn't include the time to transfer/read the response (which can be increased by a slow/congested network link, or a slow client that doesn't read the response immediately).
How many documents are you retrieving? Reading stored fields for documents can be slow if they aren't cached by the OS since it's often a disk seek per document read for a large index. -Yonik http://www.lucidimagination.com On Sun, Sep 27, 2009 at 3:41 PM, Rahul R <rahul.s...@gmail.com> wrote: > Hello, > I am trying to measure why some of my queries take a long time. I am using > EmbeddedSolrServer and with logging statements before and > after the EmbeddedSolrServer.query(SolrQuery) function, I have found the > time to be around 16s. I added the debugQuery=true and the timing component > for this reads as following: > > * > timing:{time=2438.0,prepare={time=0.0,org.apache.solr.handler.component.QueryComponent={time=0.0},org.apache.solr.handler.component.FacetComponent={time=0.0},org.apache.solr.handler.component.MoreLikeThisComponent={time=0.0},org.apache.solr.handler.component.HighlightComponent={time=0.0},org.apache.solr.handler.component.DebugComponent={time=0.0}},process={time=2438.0,org.apache.solr.handler.component.QueryComponent={time=2438.0},org.apache.solr.handler.component.FacetComponent={time=0.0},org.apache.solr.handler.component.MoreLikeThisComponent={time=0.0},org.apache.solr.handler.component.HighlightComponent={time=0.0},org.apache.solr.handler.component.DebugComponent={time=0.0}}} > * > > As you can see, this shows only 2.4s being used by the query. I can't seem > to figure out where the rest of the time is being spent. This is within my > office intranet and I don't think the request-response time over the wire > will cause significant overhead. So my question : is the timing information > presented here comprehensive or are there more time consuming operations > that are not represented here ? I guess GC pause times could be one answer > (I hope not !).... Also, the above result was for a faceted query. I can't > understand why the FacetComponent would be zero. Any thoughts ? > > Rahul >