# Are the mappings with enabled=false using heap or disk cache (from OS)?

**URL:** <https://discuss.elastic.co/t/are-the-mappings-with-enabled-false-using-heap-or-disk-cache-from-os/119269>\
**Category:** Elasticsearch\
**Created:** [February 9, 2018, 4:00pm UTC](https://discuss.elastic.co/t/are-the-mappings-with-enabled-false-using-heap-or-disk-cache-from-os/119269 "2018-02-09T16:00:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Ranieri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ranieri/32/25393_2.png) [@Claudio\_Ranieri](https://discuss.elastic.co/u/Claudio_Ranieri)\
**Post date:** [February 9, 2018, 4:00pm UTC](https://discuss.elastic.co/t/are-the-mappings-with-enabled-false-using-heap-or-disk-cache-from-os/119269/1 "2018-02-09T16:00:06Z")

</div>

Hi,  
I used this config to type product of index model

{  
"model":  
{"mappings":  
{"product":{  
"enabled":false  
}  
}  
}  
}

My question is if the elasticsearch load of these fields are consuming heap of JVM or disk cache from OS?  
I wish it to be consuming disk cache rather than JVM heap. I reserved 50% from memory RAM to OS to use in disk cache, as recommended by the elasticsearch documentation.

---

<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:** [March 9, 2018, 4:00pm UTC](https://discuss.elastic.co/t/are-the-mappings-with-enabled-false-using-heap-or-disk-cache-from-os/119269/2 "2018-03-09T16:00:36Z")

</div>

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