# How elastic bulk data

**URL:** <https://discuss.elastic.co/t/how-elastic-bulk-data/314513>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [September 15, 2022, 1:34pm UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513 "2022-09-15T13:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [September 15, 2022, 1:34pm UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513/1 "2022-09-15T13:34:03Z")

</div>

How Java client send the data source to the cluster?

```auto
bulkRequest.add(new IndexRequest().source(object));

client.bulk(_bulkRequest, RequestOptions.DEFAULT);

```

What exactly it does after converting the data to JSON?  
Does it compress it?  
How it transferred to the cluster?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 15, 2022, 2:40pm UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513/2 "2022-09-15T14:40:48Z")

</div>

It's done using the same HTTP REST API you can call with curl.

---

<div class="post-metadata">

**Author:** ![avnere](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@avnere](https://discuss.elastic.co/u/avnere)\
**Post date:** [September 15, 2022, 2:49pm UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513/3 "2022-09-15T14:49:44Z")

</div>

Means it convert the object to json and sent it by REST. correct?

If I have over than 200 milliion documents, how the network be effected?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 16, 2022, 12:30am UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513/4 "2022-09-16T00:30:00Z")

</div>

You should split it in multiple calls. Like 10000 by 10000.

---

<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:** [October 14, 2022, 12:30am UTC](https://discuss.elastic.co/t/how-elastic-bulk-data/314513/5 "2022-10-14T00:30:57Z")

</div>

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