ElasticSearch Bulk API: Performance with smaller document upserts


(George Coller) #1

For simplicity I wrote a single 'upsert' method in our DAO that will upsert
one or more documents into ES using the _bulk endpoint.

Thinking about it though now I'm worried that for single-doc upserts I may
be forcing the ES server to do a lot more work since it doesn't know if
it's receiving one or thousands of documents.

So, does anybody have a definitive answer? Should I split the DAO method
to use one ES endpoint for single doc upserts and the bulk only when I'm
loading many?

TL;DR: Does the _bulk endpoint use a lot more server resources for a
handful of document inserts than using the normal document insert api?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e6c9f0c6-0d3c-445c-a3ca-a9d5e4b686b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2