# Just Pushed: Bulk API

**URL:** <https://discuss.elastic.co/t/just-pushed-bulk-api/3337>\
**Category:** Elasticsearch\
**Created:** [September 15, 2010, 10:27am UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337 "2010-09-15T10:27:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 15, 2010, 10:27am UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/1 "2010-09-15T10:27:32Z")

</div>

Hi,

Just pushed support for bulk operations, see more here:  
[http://github.com/elasticsearch/elasticsearch/issues/issue/371](http://github.com/elasticsearch/elasticsearch/issues/issue/371)(pay  
attention to the body format). I have been slowly enabling  
elasticsearch over the past few versions to support it, and finally came up  
with a performant REST format that I am happy with.

Some very initial numbers. Using the Java API, on a two nodes cluster with  
a single index with 2 shards _with replica_ all on local machine. Single  
threaded client using the single index API gets around 3k docs per second.  
Using the bulk API with 100 batch size, it fires up to 22k docs per second  
😉 (_single thread_) Would love to hear numbers from users on this.

-shay.banon

---

<div class="post-metadata">

**Author:** ![mooky](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@mooky](https://discuss.elastic.co/u/mooky)\
**Post date:** [September 15, 2010, 12:14pm UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/2 "2010-09-15T12:14:32Z")

</div>

Nice!

On 15 Sep 2010, at 11:27, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) wrote:

> Hi,
> 
> Just pushed support for bulk operations, see more here: [Bulk API · Issue #371 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/371) (pay attention to the body format). I have been slowly enabling elasticsearch over the past few versions to support it, and finally came up with a performant REST format that I am happy with.
> 
> Some very initial numbers. Using the Java API, on a two nodes cluster with a single index with 2 shards _with replica_ all on local machine. Single threaded client using the single index API gets around 3k docs per second. Using the bulk API with 100 batch size, it fires up to 22k docs per second 😉 (_single thread_) Would love to hear numbers from users on this.
> 
> -shay.banon

---

<div class="post-metadata">

**Author:** ![jamster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamster/32/3299_2.png) [@jamster](https://discuss.elastic.co/u/jamster)\
**Post date:** [September 15, 2010, 3:09pm UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/3 "2010-09-15T15:09:30Z")

</div>

exciting... will try and get some sample runs in asap. will report back  
with numbers.

On Wed, Sep 15, 2010 at 6:27 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Hi,
> 
> Just pushed support for bulk operations, see more here:  
> [Bulk API · Issue #371 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/371)(pay attention to the body format). I have been slowly enabling  
> elasticsearch over the past few versions to support it, and finally came up  
> with a performant REST format that I am happy with.
> 
> Some very initial numbers. Using the Java API, on a two nodes cluster  
> with a single index with 2 shards _with replica_ all on local machine.  
> Single threaded client using the single index API gets around 3k docs per  
> second. Using the bulk API with 100 batch size, it fires up to 22k docs per  
> second 😉 (_single thread_) Would love to hear numbers from users on this.
> 
> -shay.banon

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [September 21, 2010, 10:02pm UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/4 "2010-09-21T22:02:05Z")

</div>

Hi,

I suppose the difference between index and create actions is that create  
action is index operation with op\_type parameter set to create (  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/index/#Operation\_Type](http://www.elasticsearch.com/docs/elasticsearch/rest_api/index/#Operation_Type))  
is that correct?  
As for the REST endpoint, the example of URL would be  
[http://localhost:9200/\_bulk](http://localhost:9200/_bulk) right?

Lukas

On Wed, Sep 15, 2010 at 12:27 PM, Shay Banon  
[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Hi,
> 
> Just pushed support for bulk operations, see more here:  
> [Bulk API · Issue #371 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/371)(pay attention to the body format). I have been slowly enabling  
> elasticsearch over the past few versions to support it, and finally came up  
> with a performant REST format that I am happy with.
> 
> Some very initial numbers. Using the Java API, on a two nodes cluster  
> with a single index with 2 shards _with replica_ all on local machine.  
> Single threaded client using the single index API gets around 3k docs per  
> second. Using the bulk API with 100 batch size, it fires up to 22k docs per  
> second 😉 (_single thread_) Would love to hear numbers from users on this.
> 
> -shay.banon

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [September 21, 2010, 10:04pm UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/5 "2010-09-21T22:04:31Z")

</div>

Yes on both.

On Wed, Sep 22, 2010 at 12:02 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Hi,
> 
> I suppose the difference between index and create actions is that create  
> action is index operation with op\_type parameter set to create (  
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/index/#Operation\_Type](http://www.elasticsearch.com/docs/elasticsearch/rest_api/index/#Operation_Type))  
> is that correct?  
> As for the REST endpoint, the example of URL would be  
> [http://localhost:9200/\_bulk](http://localhost:9200/_bulk) right?
> 
> Lukas
> 
> On Wed, Sep 15, 2010 at 12:27 PM, Shay Banon \<[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)
> 
> > wrote:
> 
> > Hi,
> > 
> > Just pushed support for bulk operations, see more here:  
> > [Bulk API · Issue #371 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/371)(pay attention to the body format). I have been slowly enabling  
> > elasticsearch over the past few versions to support it, and finally came up  
> > with a performant REST format that I am happy with.
> > 
> > Some very initial numbers. Using the Java API, on a two nodes cluster  
> > with a single index with 2 shards _with replica_ all on local machine.  
> > Single threaded client using the single index API gets around 3k docs per  
> > second. Using the bulk API with 100 batch size, it fires up to 22k docs per  
> > second 😉 (_single thread_) Would love to hear numbers from users on this.
> > 
> > -shay.banon

---

<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 6, 2017, 4:19am UTC](https://discuss.elastic.co/t/just-pushed-bulk-api/3337/6 "2017-07-06T04:19:06Z")

</div>


