# Does manual refresh flush indices too?

**URL:** <https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836>\
**Category:** Elasticsearch\
**Created:** [November 10, 2011, 2:19pm UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836 "2011-11-10T14:19:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [November 10, 2011, 2:19pm UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836/1 "2011-11-10T14:19:23Z")

</div>

Hi,  
I want to use disabling auto flush to backup ES data. I want to learn  
whether manual refresh operations flush indices or not?

--  
Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)

---

<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:** [November 13, 2011, 7:08am UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836/2 "2011-11-13T07:08:29Z")

</div>

Refresh does not causes the transaction log to be affected. Internally in  
Lucene it does write some index files, but they are not "officially" part  
of the index (until a "flush" in elasticsearch, which results in a Lucene  
commit).

On Thu, Nov 10, 2011 at 4:19 PM, Mustafa Sener [mustafa.sener@gmail.com](mailto:mustafa.sener@gmail.com)wrote:

> Hi,  
> I want to use disabling auto flush to backup ES data. I want to learn  
> whether manual refresh operations flush indices or not?
> 
> --  
> Mustafa Sener  
> [www.ifountain.com](http://www.ifountain.com)

---

<div class="post-metadata">

**Author:** ![Mustafa\_Sener](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Mustafa\_Sener](https://discuss.elastic.co/u/Mustafa_Sener)\
**Post date:** [November 15, 2011, 1:19pm UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836/3 "2011-11-15T13:19:32Z")

</div>

So When I disabled auto flushing, I can backup all data directory. I have  
another question. Assume this backup took too much time. How will this  
effect ES memory usage? may it cause OOM exception or etc?

On Sun, Nov 13, 2011 at 9:08 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Refresh does not causes the transaction log to be affected. Internally in  
> Lucene it does write some index files, but they are not "officially" part  
> of the index (until a "flush" in elasticsearch, which results in a Lucene  
> commit).
> 
> On Thu, Nov 10, 2011 at 4:19 PM, Mustafa Sener [mustafa.sener@gmail.com](mailto:mustafa.sener@gmail.com)wrote:
> 
> > Hi,  
> > I want to use disabling auto flush to backup ES data. I want to learn  
> > whether manual refresh operations flush indices or not?
> > 
> > --  
> > Mustafa Sener  
> > [www.ifountain.com](http://www.ifountain.com)

--  
Mustafa Sener  
[www.ifountain.com](http://www.ifountain.com)  
WebRep  
Overall rating

---

<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:** [November 15, 2011, 1:48pm UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836/4 "2011-11-15T13:48:10Z")

</div>

By disabling flush, a small amount of information will be stored in memory  
per operation, so yes, you will eventually run into memory problems, but it  
will take time.

On Tue, Nov 15, 2011 at 3:19 PM, Mustafa Sener [mustafa.sener@gmail.com](mailto:mustafa.sener@gmail.com)wrote:

> So When I disabled auto flushing, I can backup all data directory. I have  
> another question. Assume this backup took too much time. How will this  
> effect ES memory usage? may it cause OOM exception or etc?
> 
> On Sun, Nov 13, 2011 at 9:08 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Refresh does not causes the transaction log to be affected. Internally in  
> > Lucene it does write some index files, but they are not "officially" part  
> > of the index (until a "flush" in elasticsearch, which results in a Lucene  
> > commit).
> > 
> > On Thu, Nov 10, 2011 at 4:19 PM, Mustafa Sener [mustafa.sener@gmail.com](mailto:mustafa.sener@gmail.com)wrote:
> > 
> > > Hi,  
> > > I want to use disabling auto flush to backup ES data. I want to learn  
> > > whether manual refresh operations flush indices or not?
> > > 
> > > --  
> > > Mustafa Sener  
> > > [www.ifountain.com](http://www.ifountain.com)
> 
> --  
> Mustafa Sener  
> [www.ifountain.com](http://www.ifountain.com)  
> WebRep  
> Overall rating

---

<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:48am UTC](https://discuss.elastic.co/t/does-manual-refresh-flush-indices-too/5836/5 "2017-07-06T03:48:36Z")

</div>


