# Increase performance on \`refresh=true\` with bulk indexing

**URL:** <https://discuss.elastic.co/t/increase-performance-on-refresh-true-with-bulk-indexing/91629>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 12:43pm UTC](https://discuss.elastic.co/t/increase-performance-on-refresh-true-with-bulk-indexing/91629 "2017-07-03T12:43:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_markus](https://avatars.discourse-cdn.com/v4/letter/_/ecb155/32.png) [@\_markus](https://discuss.elastic.co/u/_markus)\
**Post date:** [July 3, 2017, 12:43pm UTC](https://discuss.elastic.co/t/increase-performance-on-refresh-true-with-bulk-indexing/91629/1 "2017-07-03T12:43:50Z")

</div>

I've had a previous similar topic here: [`refresh=wait_for` taking unexpectedly long](https://discuss.elastic.co/t/refresh-wait-for-taking-unexpectedly-long/83691)

In my application users can operate on tickets, archive them, etc. Due to the flexibility of our interface, the result is directly presented from ES. I.e. for a list of tickets to show with (various) filters we never hit our primary data source but exclusively use the ES result.

Any operation initiated by user which may affect the status of a ticket (and thus: the visibility of the users current filter selection) must done synchronously so we can refresh the list view and immediately reflect the new state.

It's not an issue when users operate on a few tickets but when they select e.g. 40 or 50, the indexing of these documents usually takes 5 to 15 **seconds**. This is quite constant.

In rare cases we also see **timeouts**.

As can be seen in the other thread, in the past we also tried `refresh=wait_for` but got worse results than with `refresh=true`.

Does it make sense to only send the updated fields? I'm aware that internally ES has to re-index the whole document anyway so we didn't go this route to avoid complexity in our application.

What can I do do increase the performance of having to synchronously change documents and immediately reflect this?

thx,

- Markus

---

<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 31, 2017, 12:44pm UTC](https://discuss.elastic.co/t/increase-performance-on-refresh-true-with-bulk-indexing/91629/2 "2017-07-31T12:44:20Z")

</div>

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