# Splitting (or not) bulk requests

**URL:** <https://discuss.elastic.co/t/splitting-or-not-bulk-requests/156463>\
**Category:** Elasticsearch\
**Created:** [November 13, 2018, 11:58am UTC](https://discuss.elastic.co/t/splitting-or-not-bulk-requests/156463 "2018-11-13T11:58:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kluvi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kluvi/32/36739_2.png) [@kluvi](https://discuss.elastic.co/u/kluvi)\
**Post date:** [November 13, 2018, 11:58am UTC](https://discuss.elastic.co/t/splitting-or-not-bulk-requests/156463/1 "2018-11-13T11:58:13Z")

</div>

Hi.  
I'm trying to make some optimizations to bulk requests and have one question in mind...

I have for example 600 operations (large data, mixed index/update), thats targeted to 3 indices. (100 index operations to index A, 100 update operations to index A, 100 index operations to index B,...)

Is it better to split it to multiple bulk requests so each request would contain only one type of operation (index/update) to one index? (in this example it would be 6 requests)  
Or it does not matter and I can mix it together?  
Or something between this 2 options (mix index and update, but separated requests for different indices)? (in this example it would be 3 requests - one per each index)

---

<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 14, 2018, 4:57am UTC](https://discuss.elastic.co/t/splitting-or-not-bulk-requests/156463/2 "2018-11-14T04:57:31Z")

</div>

It doesn't really matter, Elasticsearch will handle it all for you.

---

<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:** [December 12, 2018, 4:57am UTC](https://discuss.elastic.co/t/splitting-or-not-bulk-requests/156463/3 "2018-12-12T04:57:35Z")

</div>

Closed on December 12, 2018, 4:57am UTC

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