Re: downside to using Bulk API for small/single-doc sets?

2014-07-03 Thread Nikita Tovstoles
Thanks. Makes sense On Jul 3, 2014 2:18 PM, "joergpra...@gmail.com" wrote: > Yes, the difference is not noticeable. Bulk requests have an extra logic > for shard splitting, with a single index request, there is no overhead at > all. > > Jörg > > > On Thu, Jul 3, 2014 at 10:40 PM, Nikita Tovstoles

Re: downside to using Bulk API for small/single-doc sets?

2014-07-03 Thread joergpra...@gmail.com
Yes, the difference is not noticeable. Bulk requests have an extra logic for shard splitting, with a single index request, there is no overhead at all. Jörg On Thu, Jul 3, 2014 at 10:40 PM, Nikita Tovstoles < nikita.tovsto...@gmail.com> wrote: > I do not. But I also do not if my tests recreate

Re: downside to using Bulk API for small/single-doc sets?

2014-07-03 Thread Nikita Tovstoles
I do not. But I also do not if my tests recreate conditions where differences may surface. Nikita On Jul 3, 2014 1:35 PM, "joergpra...@gmail.com" wrote: > A question back: do you observe a significant difference? > > Jörg > > > > On Thu, Jul 3, 2014 at 12:40 AM, Nikita Tovstoles < > nikita.tovst

Re: downside to using Bulk API for small/single-doc sets?

2014-07-03 Thread joergpra...@gmail.com
A question back: do you observe a significant difference? Jörg On Thu, Jul 3, 2014 at 12:40 AM, Nikita Tovstoles < nikita.tovsto...@gmail.com> 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

downside to using Bulk API for small/single-doc sets?

2014-07-02 Thread Nikita Tovstoles
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 t