# Debugging and optimising queries and indicies

**URL:** <https://discuss.elastic.co/t/debugging-and-optimising-queries-and-indicies/23542>\
**Category:** Elasticsearch\
**Created:** [May 4, 2015, 2:22pm UTC](https://discuss.elastic.co/t/debugging-and-optimising-queries-and-indicies/23542 "2015-05-04T14:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fodoj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fodoj/32/44928_2.png) [@Fodoj](https://discuss.elastic.co/u/Fodoj)\
**Post date:** [May 4, 2015, 2:22pm UTC](https://discuss.elastic.co/t/debugging-and-optimising-queries-and-indicies/23542/1 "2015-05-04T14:22:39Z")

</div>

I have a small set of data ~120Gb collected over 7 days and Kibana  
dashboard with 4 widgets. All fields of indices are not analysed (I've  
turned it off because for this data splitting strings into terms is not  
needed). When I open the dashboard it takes ElasticSearch _minutes_ to  
process request and then it just throws Timeout. Timeout is fine if request  
takes too long, but the problem is _why does it take so long_? I know that  
it depends on data, on type of visualisations I've used etc. etc. So the  
more valid question is: _how do I debug this request, and how do I optimise  
them and/or indices to be faster?_ I would like to get search results  
within few seconds. What is an advised workflow for improving performance  
in ES?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bcddff75-fd6b-43bd-8325-b21de1cf43c6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bcddff75-fd6b-43bd-8325-b21de1cf43c6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:15am UTC](https://discuss.elastic.co/t/debugging-and-optimising-queries-and-indicies/23542/2 "2017-07-06T00:15:51Z")

</div>


