# Optimize

**URL:** <https://discuss.elastic.co/t/optimize/15804>\
**Category:** Elasticsearch\
**Created:** [February 14, 2014, 3:28pm UTC](https://discuss.elastic.co/t/optimize/15804 "2014-02-14T15:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Almeida](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafael_almeida/32/1345_2.png) [@Rafael\_Almeida](https://discuss.elastic.co/u/Rafael_Almeida)\
**Post date:** [February 14, 2014, 3:28pm UTC](https://discuss.elastic.co/t/optimize/15804/1 "2014-02-14T15:28:05Z")

</div>

Hello,

I want to know when and if I should manually call optimize on  
elasticsearch. This blog seems to say it's a bad idea:

> **[Elasticsearch: Five Things I was Doing Wrong](https://greg.blog/2013/01/24/elasticsearch-five-things-i-was-doing-wrong/)**
>
> Update: Also check out my series on scaling Elasticsearch. I’ve been working with Elasticsearch off and on for over a year, but recently I attended Elasticsearch.com’s training class (w…

However, there must be a reason for optimize to be exposed in the rest api.

[]'s  
Rafael

--  
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/CAKCnWVm9GTpo%2B79uCCfgfr9Tej98M5UyiB02BDTJ-8EJyMv%3Djg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKCnWVm9GTpo%2B79uCCfgfr9Tej98M5UyiB02BDTJ-8EJyMv%3Djg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [February 14, 2014, 3:37pm UTC](https://discuss.elastic.co/t/optimize/15804/2 "2014-02-14T15:37:08Z")

</div>

Hi,

Calling optimize manually is indeed highly discouraged in general.

The only time when you might want to run optimize manually is on read-only  
indices. For example it happens frequently when managing time-based  
indices, eg. once index per day: only one index is going to get writes and  
the other ones are read-only, so they can be safely optimized.

On Fri, Feb 14, 2014 at 4:28 PM, Rafael Almeida [almeidaraf@gmail.com](mailto:almeidaraf@gmail.com)wrote:

> Hello,
> 
> I want to know when and if I should manually call optimize on  
> elasticsearch. This blog seems to say it's a bad idea:
> 
> [Elasticsearch: Five Things I was Doing Wrong – greg.blog](http://gibrown.wordpress.com/2013/01/24/elasticsearch-five-things-i-was-doing-wrong/)
> 
> However, there must be a reason for optimize to be exposed in the rest api.
> 
> 's  
> Rafael
> 
> --  
> 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/CAKCnWVm9GTpo%2B79uCCfgfr9Tej98M5UyiB02BDTJ-8EJyMv%3Djg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKCnWVm9GTpo%2B79uCCfgfr9Tej98M5UyiB02BDTJ-8EJyMv%3Djg%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Adrien Grand

--  
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/CAL6Z4j6Q-Lxe0\_sfo%3DBudmyfBG4BJj3rVb-ZYv0CCTHF4Y6FZQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6Q-Lxe0_sfo%3DBudmyfBG4BJj3rVb-ZYv0CCTHF4Y6FZQ%40mail.gmail.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, 1:50am UTC](https://discuss.elastic.co/t/optimize/15804/3 "2017-07-06T01:50:04Z")

</div>


