# Nullify elasticsearch cache

**URL:** https://discuss.elastic.co/t/nullify-elasticsearch-cache/11529
**Category:** Elasticsearch
**Created:** [April 10, 2013, 12:50pm UTC](https://discuss.elastic.co/t/nullify-elasticsearch-cache/11529 "2013-04-10T12:50:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)
#### Post date: [April 10, 2013, 12:50pm UTC](https://discuss.elastic.co/t/nullify-elasticsearch-cache/11529/1 "2013-04-10T12:50:01Z")

</div>

Hi,

Is it possible to disable the elasticsearch cache per query (for testing  
purposes) or nullify (zero) the cache when needed?

We want to deploy an environment with elasticsearch and compare  
performances to our deployed lucene environment,

but we want to check if the elasticsearch results are influenced by cache.

Thanks, Ophir

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)
#### Post date: [April 10, 2013, 5:21pm UTC](https://discuss.elastic.co/t/nullify-elasticsearch-cache/11529/2 "2013-04-10T17:21:28Z")

</div>

You can clear caches using this command -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

However, I don't quite understand why would you want to do that.  
Elasticsearch caches can significantly improve elasticsearch performance in  
real life as well. I think a better solution would be to come up with a  
more realistic test data and allow Elasticsearch to do its job as designed.

On Wednesday, April 10, 2013 8:50:01 AM UTC-4, Ophir Michaeli wrote:

> Hi,
> 
> Is it possible to disable the elasticsearch cache per query (for testing  
> purposes) or nullify (zero) the cache when needed?
> 
> We want to deploy an environment with elasticsearch and compare  
> performances to our deployed lucene environment,
> 
> but we want to check if the elasticsearch results are influenced by cache.
> 
> Thanks, Ophir

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:41am UTC](https://discuss.elastic.co/t/nullify-elasticsearch-cache/11529/3 "2017-07-06T02:41:41Z")

</div>


