# Incorrect Stats - Index time ES 2.0

**URL:** <https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070>\
**Category:** Elasticsearch\
**Created:** [March 22, 2016, 6:39am UTC](https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070 "2016-03-22T06:39:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [March 22, 2016, 6:39am UTC](https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070/1 "2016-03-22T06:39:09Z")

</div>

Hi,

I am trying to index 4 million docs in ES 2.0.2. After the indexing when i look into the stats(/\_nodes/stats) API, i get around 35 minutes as index time. The way I calculated is by calculating the difference of index\_time\_in\_millis before and after crawl. But immediately after the execution of my program( which took 23 minutes), when i verified using cats api (\_cat/indices?v) I could see 4 million docs  
I am having 5 shards and 0 replicas running on a single node.

My question is how is that stats(/\_nodes/stats) api showing 35 minutes but the actual time was around 23 minutes. I am seeing this in ES 2.0 onwards but in ES 1.4 both my program total execution time and ES stats time was same.

Stats Before start of Indexing

indexing: {  
index\_total: 7715578,  
index\_time\_in\_millis: 3634410,  
index\_current: 0,  
delete\_total: 5515022,  
delete\_time\_in\_millis: 794744,  
delete\_current: 0,  
noop\_update\_total: 0,  
is\_throttled: false,  
throttle\_time\_in\_millis: 0

Stats After completion of Indexing

indexing: {  
index\_total: 12116702,  
index\_time\_in\_millis: 5735582,  
index\_current: 0,  
delete\_total: 5515022,  
delete\_time\_in\_millis: 794744,  
delete\_current: 0,  
noop\_update\_total: 0,  
is\_throttled: false,  
throttle\_time\_in\_millis: 0

Indexing Time is (5735582-3634410)/60000 =35.0195 minutes

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [March 22, 2016, 7:06am UTC](https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070/2 "2016-03-22T07:06:17Z")

</div>

Stats found when running on ES 1.4.4 same machine as ES2.0.2

After indexing

indexing: {  
index\_total: 4401126,  
index\_time\_in\_millis: 1762773,  
index\_current: 0,  
delete\_total: 2,  
delete\_time\_in\_millis: 5,  
delete\_current: 0,  
noop\_update\_total: 0,  
is\_throttled: false,  
throttle\_time\_in\_millis: 0  
}

Here the program took 29 mins and the index stats showed the same time too...

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [March 23, 2016, 4:06pm UTC](https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070/3 "2016-03-23T16:06:54Z")

</div>

@jprante Any thoughts on this

---

<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 5, 2017, 11:05pm UTC](https://discuss.elastic.co/t/incorrect-stats-index-time-es-2-0/45070/4 "2017-07-05T23:05:47Z")

</div>


