# Faster inserts

**URL:** <https://discuss.elastic.co/t/faster-inserts/10863>\
**Category:** Elasticsearch\
**Created:** [February 24, 2013, 4:04am UTC](https://discuss.elastic.co/t/faster-inserts/10863 "2013-02-24T04:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)\
**Post date:** [February 24, 2013, 4:04am UTC](https://discuss.elastic.co/t/faster-inserts/10863/1 "2013-02-24T04:04:48Z")

</div>

I am inserting documents in to elasticsearch and seeing that they take  
about 2ms on average. my documents are not to large sometimes mostly about  
1kb in size. I am woundering if there is anyway to speed up isnerts even if  
it means loosing some relaiblaity. ore if the code will return after  
juornalling or something.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [February 24, 2013, 8:19am UTC](https://discuss.elastic.co/t/faster-inserts/10863/2 "2013-02-24T08:19:58Z")

</div>

You have some options:

- split indexing strategy into baseline ingesting and incremental updates
- use bulk indexing for baseline ingest
- reduce replica level to 0 while baseline ingesting
- use parallel indexing code on client side
- use faster disks
- optimize input/output (reduce number of exepensive oprations like  
fsync, use larger buffers etc.)

What API do you use for indexing documents, Java or HTTP?

Jörg

Am 24.02.13 05:04, schrieb Wojons Tech:

> I am inserting documents in to elasticsearch and seeing that they take  
> about 2ms on average. my documents are not to large sometimes mostly  
> about 1kb in size. I am woundering if there is anyway to speed up  
> isnerts even if it means loosing some relaiblaity. ore if the code  
> will return after juornalling or something. --  
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)\
**Post date:** [February 24, 2013, 1:07pm UTC](https://discuss.elastic.co/t/faster-inserts/10863/3 "2013-02-24T13:07:14Z")

</div>

I am using http connector  
On Feb 24, 2013 12:20 AM, "Jörg Prante" [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> You have some options:
> 
> - split indexing strategy into baseline ingesting and incremental updates
> - use bulk indexing for baseline ingest
> - reduce replica level to 0 while baseline ingesting
> - use parallel indexing code on client side
> - use faster disks
> - optimize input/output (reduce number of exepensive oprations like fsync,  
> use larger buffers etc.)
> 
> What API do you use for indexing documents, Java or HTTP?
> 
> Jörg
> 
> Am 24.02.13 05:04, schrieb Wojons Tech:
> 
> > I am inserting documents in to elasticsearch and seeing that they take  
> > about 2ms on average. my documents are not to large sometimes mostly about  
> > 1kb in size. I am woundering if there is anyway to speed up isnerts even if  
> > it means loosing some relaiblaity. ore if the code will return after  
> > juornalling or something. --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to elasticsearch+unsubscribe@\*\*[googlegroups.com](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > .
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to elasticsearch+unsubscribe@\*\*[googlegroups.com](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> .

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:49am UTC](https://discuss.elastic.co/t/faster-inserts/10863/4 "2017-07-06T02:49:51Z")

</div>


