# Translog operations count equal to the number of documents being indexed

**URL:** <https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157>\
**Category:** Elasticsearch\
**Created:** [November 20, 2015, 2:18pm UTC](https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157 "2015-11-20T14:18:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [November 20, 2015, 2:18pm UTC](https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157/1 "2015-11-20T14:18:21Z")

</div>

Hello,

I am indexing 5000 documents using 3 threads.

But when the indexing gets over and when I check the number of documents being indexed by using the \_status it shows ::

"translog" : {  
"operations" : 5000  
},  
"docs" : {  
"num\_docs" : 4964,  
"max\_doc" : 4971,  
"deleted\_docs" : 7  
},

Why is operations 5000 ? shouldn't it be less than the number of documents ?  
And why the num\_docs field has documents less than 5000 ?

Can anybody please help me to resolve the above mentioned issue ?

Thanks & Regards  
Siddharth Gupta.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2015, 5:44am UTC](https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157/2 "2015-11-21T05:44:11Z")

</div>

> [@siddharth\_gupta](#):
>
> Why is operations 5000 ? shouldn't it be less than the number of documents ?

Not with 2.0 no.

> [@siddharth\_gupta](#):
>
> And why the num\_docs field has documents less than 5000 ?

It looks like some docs were updated, rather than inserted, do you have duplicate data?

---

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [November 23, 2015, 12:26pm UTC](https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157/3 "2015-11-23T12:26:31Z")

</div>

Thanks for your reply!

I am using 1.7.1 (elasticsearch)

---

<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:36pm UTC](https://discuss.elastic.co/t/translog-operations-count-equal-to-the-number-of-documents-being-indexed/35157/4 "2017-07-05T23:36:35Z")

</div>


