Hi,

Let me explain you *time* *parameters in Solr*:

*Timing* parameter of debug returns information about how long the query
took to process.

*Query time* shows information of how long did it take in Solr to get the
search
results. It doesn't include reading bits from disk, etc.

Also, there is another parameter named as *elapsed time*. It shows time
frame of the query sent to Solr and response is returned. Includes query
time, reading bits from disk, constructing the response and transmissioning
it, etc.

Kind Regards,
Furkan KAMACI

On Sat, Dec 17, 2016 at 6:43 PM, S G <sg.online.em...@gmail.com> wrote:

> Hi,
>
> I am using Solr 4.10 and its response time for the clients is not very
> good.
> Even though the Solr's plugin/stats shows less than 200 milliseconds,
> clients report several seconds in response time.
>
> So I tried using debug-timing parameter from the Solr UI and this is what I
> got.
> Note how the QTime is 2978 while the time in debug-timing is 19320.
>
> What does this mean?
> How can Solr return a result in 3 seconds when time taken between two
> points in the same path is 20 seconds ?
>
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 2978,
>     "params": {
>       "q": "*:*",
>       "debug": "timing",
>       "indent": "true",
>       "wt": "json",
>       "_": "1481992653008"
>     }
>   },
>   "response": {
>     "numFound": 1565135270,
>     "start": 0,
>     "maxScore": 1,
>     "docs": [
>       ....
>     ]
>   },
>   "debug": {
>     "timing": {
>       "time": 19320,
>       "prepare": {
>         "time": 4,
>         "query": {
>           "time": 3
>         },
>         "facet": {
>           "time": 0
>         },
>         "mlt": {
>           "time": 0
>         },
>         "highlight": {
>           "time": 0
>         },
>         "stats": {
>           "time": 0
>         },
>         "expand": {
>           "time": 0
>         },
>         "debug": {
>           "time": 0
>         }
>       },
>       "process": {
>         "time": 19315,
>         "query": {
>           "time": 19309
>         },
>         "facet": {
>           "time": 0
>         },
>         "mlt": {
>           "time": 1
>         },
>         "highlight": {
>           "time": 0
>         },
>         "stats": {
>           "time": 0
>         },
>         "expand": {
>           "time": 0
>         },
>         "debug": {
>           "time": 5
>         }
>       }
>     }
>   }
> }
>

Reply via email to