Sometimes when I use curl to query solr I get a slow real time response but a
short QTime.

Here's an example:

$ time curl "solrsandbox/testindex/select/?q=all:science,data&rows=500" >
foo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time 
Current
                                 Dload  Upload   Total   Spent    Left 
Speed
100  302k    0  302k    0     0   103k      0 --:--:--  0:00:02 --:--:-- 
104k

real    0m2.935s
user    0m0.003s
sys     0m0.012s

It took nearly 3 seconds to return 302K of data at an upload speed of 103K
but the query response time is this:

<int name="QTime">500</int>

I'm guessing the delay is from Lucene and not the network but I could be
wrong. 90% of my queries are 8 to 10 times faster than this.

Does anyone have an idea why a query that takes solr just half a second (500
ms) to execute would take 3 seconds to transfer the data? And, this is a
query submitted from the same machine the index is on so I don't think the
network is a problem. Most queries return in a small fraction of a second of
real time.

Thanks.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/small-QTime-but-slow-results-to-user-tp4027100.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to