# Profile API doesn't seem to explain query time

**URL:** <https://discuss.elastic.co/t/profile-api-doesnt-seem-to-explain-query-time/119375>\
**Category:** Elasticsearch\
**Created:** [February 11, 2018, 12:20pm UTC](https://discuss.elastic.co/t/profile-api-doesnt-seem-to-explain-query-time/119375 "2018-02-11T12:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bslinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bslinger/32/26610_2.png) [@bslinger](https://discuss.elastic.co/u/bslinger)\
**Post date:** [February 11, 2018, 12:20pm UTC](https://discuss.elastic.co/t/profile-api-doesnt-seem-to-explain-query-time/119375/1 "2018-02-11T12:20:11Z")

</div>

Hi there,

I was wondering if somebody could explain to me what I'm missing about the profile API? I'm trying to diagnose why my queries have suddenly gotten slower, so turned profile on for one of them, but the time shown in the profile is much lower than the overall time taken (and shown in the top-level 'took' value)

Here is my query and the response, I appreciate any insight you might be able to give!

```
GET /podchaser/Podcast/_search
{
  "profile":true,
  "_source": [
    "id",
    "title",
    "image_url",
    "slug",
    "display_rating"
  ],
  "query": {
    "bool": {
      "should": [
        {
          "match": {
            "title.exact": {
              "query": "Drizzle",
              "boost": 150
            }
          }
        },
        {
          "match_phrase": {
            "title": {
              "query": "Drizzle",
              "boost": 50
            }
          }
        },
        {
          "nested": {
            "path": "tags",
            "score_mode": "max",
            "query": {
              "function_score": {
                "query": {
                  "match_phrase": {
                    "tags.text": {
                      "query": "Drizzle",
                      "slop": 20
                    }
                  }
                },
                "functions": [
                  {
                    "field_value_factor": {
                      "field": "tags.relevance",
                      "factor": 5
                    }
                  }
                ]
              }
            }
          }
        }
      ],
      "minimum_should_match": 1
    }
  },
  "size": 4
}

```

Response: [https://gist.github.com/bslinger/aa7d2351613d9df84ac25117d73e296d](https://gist.github.com/bslinger/aa7d2351613d9df84ac25117d73e296d)

---

<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:** [March 11, 2018, 12:20pm UTC](https://discuss.elastic.co/t/profile-api-doesnt-seem-to-explain-query-time/119375/2 "2018-03-11T12:20:22Z")

</div>

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