# Help me understand why bulk index with op\_type create is slow when duplicate records exist

**URL:** <https://discuss.elastic.co/t/help-me-understand-why-bulk-index-with-op-type-create-is-slow-when-duplicate-records-exist/197429>\
**Category:** Elasticsearch\
**Created:** [August 30, 2019, 1:16am UTC](https://discuss.elastic.co/t/help-me-understand-why-bulk-index-with-op-type-create-is-slow-when-duplicate-records-exist/197429 "2019-08-30T01:16:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![esmattdawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/esmattdawson/32/51404_2.png) [@esmattdawson](https://discuss.elastic.co/u/esmattdawson)\
**Post date:** [August 30, 2019, 1:16am UTC](https://discuss.elastic.co/t/help-me-understand-why-bulk-index-with-op-type-create-is-slow-when-duplicate-records-exist/197429/1 "2019-08-30T01:16:52Z")

</div>

The took time for creating 7000 records in an index with no duplicates is 450ms, when all are duplicates its 7000ms, a 16x performance decrease. Also I see large spikes in GC collection times. When I use index it's 450ms and when I use upsert it's 600ms.  
This doesn't make sense, I'd think the op\_type create would require the least processing time as it's not actually creating a record.

Using elasticsearch 7.3.1 with OpenJDK 11 on Ubuntu

---

<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:** [September 27, 2019, 1:16am UTC](https://discuss.elastic.co/t/help-me-understand-why-bulk-index-with-op-type-create-is-slow-when-duplicate-records-exist/197429/2 "2019-09-27T01:16:53Z")

</div>

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