# Kibana cache the results of geo\_shape filter

**URL:** <https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549>\
**Category:** Kibana\
**Created:** [June 18, 2020, 1:11am UTC](https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549 "2020-06-18T01:11:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scorpion21](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scorpion21/32/48483_2.png) [@Scorpion21](https://discuss.elastic.co/u/Scorpion21)\
**Post date:** [June 18, 2020, 1:11am UTC](https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549/1 "2020-06-18T01:11:59Z")

</div>

I have created a Kibana Dashboard with elastic maps showing thousands of geo\_shape (multi-polygons).  
It takes too long to query the Dashboard when applying filters.  
I wonder if there is a way to cache the geo\_shape filter in Kibana, so if I apply filter using the same shapes repeatedly, the results can be cached.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 18, 2020, 9:17pm UTC](https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549/2 "2020-06-18T21:17:25Z")

</div>

Elasticsearch automatically caches frequently used queries. This is discussed in ["All About Caching"](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/filter-caching.html) in the Definitive Guide.

Are you getting errors when running your filters? Which version of Kibana are you running? Can you share examples of the filters that you are applying? How large (# of vertices) are each of your multi-polygons? Answers to these questions can also help us understand the issue.

This also might be a good opportunity to tune your index for better performance. The ["Designing for Scale" chapter](https://www.elastic.co/guide/en/elasticsearch/guide/current/scale.html) in the Definitive Guide may offer a few tips for fine tuning performance.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [June 23, 2020, 9:16pm UTC](https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549/3 "2020-06-23T21:16:43Z")

</div>

Note that there is also some fine-tuning you can do on how filters are applied.

If those polygons do _not_ need to be filtered based on searches or time-changes (e.g. because they are for context rather than actual filtering), you can also turn of the "apply global filter"-flag

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/8/38f097298a3dd2470e59e986995159bf63492c31.png)

It really depends on the use-case of course. But as @nickpeihl suggested, any information you can share about that would be really helpful.

---

<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 21, 2020, 9:22pm UTC](https://discuss.elastic.co/t/kibana-cache-the-results-of-geo-shape-filter/237549/4 "2020-07-21T21:22:35Z")

</div>

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