# Optimize API slow down search

**URL:** <https://discuss.elastic.co/t/optimize-api-slow-down-search/7985>\
**Category:** Elasticsearch\
**Created:** [June 5, 2012, 7:16pm UTC](https://discuss.elastic.co/t/optimize-api-slow-down-search/7985 "2012-06-05T19:16:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [June 5, 2012, 7:16pm UTC](https://discuss.elastic.co/t/optimize-api-slow-down-search/7985/1 "2012-06-05T19:16:25Z")

</div>

Hi

Recently, I ran Optimize API on all of my index and I found that after  
running the same my searching get very slow. I am not able to run even a  
single facet query.  
I have around 110GB index size.

Is it actually because of optimize API?

Please help.

Thanks,  
Pulkit Agrawal

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 10, 2012, 9:07pm UTC](https://discuss.elastic.co/t/optimize-api-slow-down-search/7985/2 "2012-06-10T21:07:12Z")

</div>

It might be that the optimize API caused a need for new data to be loaded  
to memory, so it might take time for the first few searches since they are  
busy loading that data. The next ones should faster. The new warmup API in  
upcoming 0.20 will solve the problem of having the search API loading that  
data.

On Tue, Jun 5, 2012 at 9:16 PM, Pulkit Agrawal [pulkitdotcom@gmail.com](mailto:pulkitdotcom@gmail.com)wrote:

> Hi
> 
> Recently, I ran Optimize API on all of my index and I found that after  
> running the same my searching get very slow. I am not able to run even a  
> single facet query.  
> I have around 110GB index size.
> 
> Is it actually because of optimize API?
> 
> Please help.
> 
> Thanks,  
> Pulkit Agrawal

---

<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, 3:25am UTC](https://discuss.elastic.co/t/optimize-api-slow-down-search/7985/3 "2017-07-06T03:25:00Z")

</div>

Closed on July 6, 2017, 3:25am UTC


