A question back: do you observe a significant difference? Jörg
On Thu, Jul 3, 2014 at 12:40 AM, Nikita Tovstoles < [email protected]> wrote: > Hi, > > 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<Doc> 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? > > thanks, > -nikita > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/9a915ef3-812b-4905-8e4e-852aeb43a81c%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/9a915ef3-812b-4905-8e4e-852aeb43a81c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoF9tztn6o0KvLYnA74-YW3xHW6BXGCe9sFnq1euLZ6g4A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
