# ES Profile : Collector is taking hughe time as compared to query time

**URL:** <https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212>\
**Category:** Elasticsearch\
**Created:** [May 18, 2017, 8:25am UTC](https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212 "2017-05-18T08:25:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashpal\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashpal_singh/32/43209_2.png) [@Yashpal\_Singh](https://discuss.elastic.co/u/Yashpal_Singh)\
**Post date:** [May 18, 2017, 8:25am UTC](https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212/1 "2017-05-18T08:25:49Z")

</div>

{  
"query":[  
{  
"type":"BooleanQuery",  
"description":"+(ConstantScore(location:United Kingdom))^0.0 #(ConstantScore(\_type:abc))^0.0",  
"time":"5038.449155ms",  
"breakdown":{},  
"children":[  
{},  
{}  
]  
}  
],  
"rewrite\_time":342009,  
"collector":[  
{  
"name":"CancellableCollector",  
"reason":"search\_cancelled",  
"time":"42858.34100ms",  
"children":[  
{  
"name":"SimpleFieldCollector",  
"reason":"search\_top\_hits",  
"time":"42083.81388ms"  
}  
]  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [May 18, 2017, 4:59pm UTC](https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212/2 "2017-05-18T16:59:41Z")

</div>

Can you post your query too?

How many documents does it match?

---

<div class="post-metadata">

**Author:** ![Yashpal\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashpal_singh/32/43209_2.png) [@Yashpal\_Singh](https://discuss.elastic.co/u/Yashpal_Singh)\
**Post date:** [May 22, 2017, 1:29pm UTC](https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212/3 "2017-05-22T13:29:32Z")

</div>

Hi Polyfractal,

The query is simple filtering on location field of the object.

it is matching around 21,000,000 documents.

---

<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:** [June 19, 2017, 1:39pm UTC](https://discuss.elastic.co/t/es-profile-collector-is-taking-hughe-time-as-compared-to-query-time/86212/4 "2017-06-19T13:39:10Z")

</div>

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