# Number of docs differents between primary shards and replicas

**URL:** <https://discuss.elastic.co/t/number-of-docs-differents-between-primary-shards-and-replicas/76228>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 1:42pm UTC](https://discuss.elastic.co/t/number-of-docs-differents-between-primary-shards-and-replicas/76228 "2017-02-23T13:42:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 24, 2017, 8:54am UTC](https://discuss.elastic.co/t/number-of-docs-differents-between-primary-shards-and-replicas/76228/4 "2017-02-24T08:54:30Z")

</div>

> [@ericpietro](#):
>
> "refresh\_interval": "-1",

You have disabled automatic refreshes, so there is no defined time limit for when all results will be made searchable. This mode is often used during bulk load, but requires a manual refresh or a change to the setting at the end. If you want to optimise for indexing performance, but do not have clearly defined bulk loads after which you can refresh, you can instead set this to 10 or 30 seconds and still see a performance benefit, while avoiding any manual steps being required.

---

_[View the full topic](https://discuss.elastic.co/t/number-of-docs-differents-between-primary-shards-and-replicas/76228)._
