# Caching not increasing performance

**URL:** <https://discuss.elastic.co/t/caching-not-increasing-performance/853>\
**Category:** Elasticsearch\
**Created:** [May 18, 2015, 4:18pm UTC](https://discuss.elastic.co/t/caching-not-increasing-performance/853 "2015-05-18T16:18:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emptyemail](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@emptyemail](https://discuss.elastic.co/u/emptyemail)\
**Post date:** [May 18, 2015, 4:18pm UTC](https://discuss.elastic.co/t/caching-not-increasing-performance/853/1 "2015-05-18T16:18:47Z")

</div>

When enabling caching inside a query there is a small decrease in performance without any benefit.

sample query:

```auto
query: bool: must_have: [term: gender: 'M']

```

40 shards, 5 million documents, 200 million child documents not part of this query(not sure if relevant).

10 servers, CPU load is very low, 30 gigs of ram each with 15 allocated to heap.

How do I go about debugging something like this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Camilo\_Sierra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/camilo_sierra/32/14397_2.png) [@Camilo\_Sierra](https://discuss.elastic.co/u/Camilo_Sierra)\
**Post date:** [May 18, 2015, 4:29pm UTC](https://discuss.elastic.co/t/caching-not-increasing-performance/853/2 "2015-05-18T16:29:27Z")

</div>

i can not help you with the cache but you can try to use "filters" / [filter bitset](https://www.elastic.co/blog/all-about-elasticsearch-filter-bitsets) to improve your performance !

---

<div class="post-metadata">

**Author:** ![emptyemail](https://avatars.discourse-cdn.com/v4/letter/e/6de8d8/32.png) [@emptyemail](https://discuss.elastic.co/u/emptyemail)\
**Post date:** [May 18, 2015, 4:47pm UTC](https://discuss.elastic.co/t/caching-not-increasing-performance/853/3 "2015-05-18T16:47:21Z")

</div>

I am using filters with bitsets

---

<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:13am UTC](https://discuss.elastic.co/t/caching-not-increasing-performance/853/4 "2017-07-06T00:13:28Z")

</div>

Closed on July 6, 2017, 12:13am UTC


