# Timings shown in Dev Console

**URL:** <https://discuss.elastic.co/t/timings-shown-in-dev-console/351530>\
**Category:** Elasticsearch\
**Created:** [January 22, 2024, 10:30am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530 "2024-01-22T10:30:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [January 22, 2024, 10:30am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/1 "2024-01-22T10:30:14Z")

</div>

Hi Team,

We had query on time returned (right hand corner in dev tools console)while querying the index value via GET rest API commands.  
If I had index having 1M records and while trying to fetch all records so time showing in the right hand corner is the time for entire 1M records or is it only for few records which we can see in the right hand side panel.

Could you please someone help me to understand the details.

Thanks,  
Debasis  
 ![Dev_console](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4e228aff511f34f58008acb8b18f0285f7068966.jpeg)

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [January 22, 2024, 11:07am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/2 "2024-01-22T11:07:02Z")

</div>

Hi @Debasis_Mallick,

The time shown there is the time elapsed for the last query or API call run in the console, so it's for the response in the right hand panel:

![Screenshot 2024-01-22 at 11.03.07](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d64a033ed652dbee0613bf7b56b401b07d2c75bf.png)

If you're looking to get the response time for a query with particular record volumes, or to understand the performance, I would recommend querying with that particular volume or profiling the query of interest via the [Search Profiler](https://www.elastic.co/guide/en/kibana/current/xpack-profiler.html).

Hope that helps!

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 22, 2024, 1:37pm UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/3 "2024-01-22T13:37:02Z")

</div>

> [@Debasis\_Mallick](#):
>
> If I had index having 1M records and while trying to fetch all records so time showing in the right hand corner is the time for entire 1M records or is it only for few records which we can see in the right hand side panel.

What is the request you are doing?

Keep in mind that it will return only 10k documents, not 1M.

---

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [January 23, 2024, 4:38am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/4 "2024-01-23T04:38:06Z")

</div>

thanks @leandrojmp for response so the timings shown in the right hand corner is only for 10K records. Please correct me if I am wrong.

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 23, 2024, 12:22pm UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/5 "2024-01-23T12:22:41Z")

</div>

The timing is for the request, if you didn't limit the size then it will return a maximum of 10k hits.

It is not possible to know exactly how many hits were returned because you didn't share neither the query nor the response.

---

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [January 24, 2024, 6:45am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/6 "2024-01-24T06:45:53Z")

</div>

@leandrojmp Thanks for confirmation. To confirm the theory I uploaded index with count of 15k records. But while querying the Index with below rest API command got o/p as below. The hits are showing 10k with 166ms but while checking the right hand side panel in dev console there is no 10k (the command o/p is suppressed) records showing, only few records showing. Why it is like that can you help me to understand.

`GET /employee/_search`

```auto
{
  "took": 2,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 10000,
      "relation": "gte"
    },

```

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [January 30, 2024, 4:38am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/7 "2024-01-30T04:38:40Z")

</div>

@leandrojmp Did you get chance to look into the above query.

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 30, 2024, 11:49am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/8 "2024-01-30T11:49:11Z")

</div>

Hello, sorry, not sure what I can help here.

But just to correct myself, the maximum hits you can return without pagination is 10k, this doesn't mean that in dev tools it will return 10k hits per default.

Per default if you do not specify a `size` in your query it will return only `10`.

As you can see in the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html#search-search).

> `size`  
> (Optional, integer) Defines the number of hits to return. Defaults to `10`.

So I would say that this time show in Kibana is for a maxium of 10 hits, if you want to know how much time it would take for 10k hits for example you need to use the `size` parameter.

`GET index/_search?size=10000`

---

<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:** [February 27, 2024, 11:49am UTC](https://discuss.elastic.co/t/timings-shown-in-dev-console/351530/9 "2024-02-27T11:49:16Z")

</div>

Closed on February 27, 2024, 11:49am UTC

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