I am using ES Java API to talk to an ES server. Sometimes I need to index a
single doc, sometimes dozens or hundreds at a time. I'd prefer to keep my
code simple (am a contrarian thinker) and wonder if I can get away with
always using bulk API (ie BulkRequestBuilder). so that my interface to ES
would look like so:
void indexDoc(Doc doc);
void indexDocs(Collection docs);
...but impl would always delegate to BulkRequestBuilder - with number of
actions sometimes being ~ 1.
Is there a performance (or other) downside to this approach. Specifically,
would bulk index updates (with set of size == 1) take significantly longer
than non-bulk updates?
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 firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9a915ef3-812b-4905-8e4e-852aeb43a81c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.