# Slow response time even though slow logs show fast (query+fetch)

**URL:** https://discuss.elastic.co/t/slow-response-time-even-though-slow-logs-show-fast-query-fetch/300742
**Category:** Elasticsearch
**Created:** [March 26, 2022, 6:41am UTC](https://discuss.elastic.co/t/slow-response-time-even-though-slow-logs-show-fast-query-fetch/300742 "2022-03-26T06:41:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Abhishek\_Singh2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_singh2/32/98606_2.png) [@Abhishek\_Singh2](https://discuss.elastic.co/u/Abhishek_Singh2)
#### Post date: [March 26, 2022, 6:41am UTC](https://discuss.elastic.co/t/slow-response-time-even-though-slow-logs-show-fast-query-fetch/300742/1 "2022-03-26T06:41:59Z")

</div>

I am having trouble with my Elasticsearch nodes/queries ……. I have 3 physical nodes in which all 3 are master + data nodes. I am running a simple filter query in slow logs I see query +fetch time as 8 millisec sometimes 17 millisec but response time on kibana is 300 to 500 millisec.  
My index size is \< 1 GB with 1 shard 2 replica, and the cluster has 16\*3 GB RAM. Data size returned after filter query is around 1Mb(without whitespace).  
Here is my slow logs

[2022-03-25T22:59:42,446][TRACE][index.search.slowlog.fetch] [debbf06e052fb476f254ba1234123] [khoj\_prod\_001][0] took[17.7ms], took\_millis[17], total\_hits[196 hits], types[\_doc], stats, search\_type[QUERY\_THEN\_FETCH], total\_shards[1],

```auto
source[{
    "size": 300,
    "query": {
        "bool": {
            "filter": [
                {
                    "term": {
                        "hub_id": {
                            "value": 1,
                            "boost": 1
                        }
                    }
                },
                {
                    "term": {
                        "category_id": {
                            "value": 3,
                            "boost": 1
                        }
                    }
                },
                {
                    "nested": {
                        "query": {
                            "bool": {
                                "filter": [
                                    {
                                        "term": {
                                            "kml_wise_slot.kml_id": {
                                                "value": "610fe6b10dab1241283de493",
                                                "boost": 1
                                            }
                                        }
                                    }
                                ],
                                "adjust_pure_negative": true,
                                "boost": 1
                            }
                        },
                        "path": "kml_wise_slot",
                        "ignore_unmapped": false,
                        "score_mode": "none",
                        "boost": 1
                    }
                }
            ],
            "adjust_pure_negative": true,
            "boost": 1
        }
    },
    "sort": [
        {
            "scores.value": {
                "order": "desc",
                "nested": {
                    "path": "scores",
                    "filter": {
                        "term": {
                            "scores.key": {
                                "value": "ranking_scores",
                                "boost": 1
                            }
                        }
                    }
                }
            }
        }
    ]
}], id[], 

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 23, 2022, 6:42am UTC](https://discuss.elastic.co/t/slow-response-time-even-though-slow-logs-show-fast-query-fetch/300742/2 "2022-04-23T06:42:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
