# Is took the time for the master to aggregate all sub query responses or is it sum of individual sub query's tooks

**URL:** <https://discuss.elastic.co/t/is-took-the-time-for-the-master-to-aggregate-all-sub-query-responses-or-is-it-sum-of-individual-sub-querys-tooks/55456>\
**Category:** Elasticsearch\
**Created:** [July 14, 2016, 12:01am UTC](https://discuss.elastic.co/t/is-took-the-time-for-the-master-to-aggregate-all-sub-query-responses-or-is-it-sum-of-individual-sub-querys-tooks/55456 "2016-07-14T00:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![esmattdawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/esmattdawson/32/51404_2.png) [@esmattdawson](https://discuss.elastic.co/u/esmattdawson)\
**Post date:** [July 14, 2016, 12:01am UTC](https://discuss.elastic.co/t/is-took-the-time-for-the-master-to-aggregate-all-sub-query-responses-or-is-it-sum-of-individual-sub-querys-tooks/55456/1 "2016-07-14T00:01:09Z")

</div>

If it were the sum of the sub queries tooks, a total took of 10ms might actually be 10 queries in parallel taking 1ms to complete in parallel, thus the time taken is really 1ms.

---

<div class="post-metadata">

**Author:** ![cheruvian](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cheruvian](https://discuss.elastic.co/u/cheruvian)\
**Post date:** [July 14, 2016, 1:42am UTC](https://discuss.elastic.co/t/is-took-the-time-for-the-master-to-aggregate-all-sub-query-responses-or-is-it-sum-of-individual-sub-querys-tooks/55456/3 "2016-07-14T01:42:26Z")

</div>

took is the total time it took ES to process the query (i.e. aggregate sub queries per shard).

It does not include

serializing the request into JSON on the client  
sending the request over the network  
deserializing the request from JSON on the server  
serializing the response into JSON on the server  
sending the response over the network  
deserializing the response from JSON on the client

---

<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:** [July 5, 2017, 10:35pm UTC](https://discuss.elastic.co/t/is-took-the-time-for-the-master-to-aggregate-all-sub-query-responses-or-is-it-sum-of-individual-sub-querys-tooks/55456/4 "2017-07-05T22:35:54Z")

</div>


