Best way to insert a collection of items at once

Brian Roach roach at basho.com
Tue Jul 23 11:42:32 EDT 2013


On Tue, Jul 23, 2013 at 6:51 AM, rsb <cnasillo at gmail.com> wrote:
> Is there any underlaying difference between performing an;
>
> storeObject.withoutFetch().execute();
> -or-
> myBucket.store(item.key, item).execute();
>
> In other words, will my second statement result in an implicit fetch as
> well?

Bucket.store() returns a StoreObject. You want to call its
withoutFetch() method:

myBucket.store(item.key, item).withoutFetch().execute();

Thanks,
- Roach




More information about the riak-users mailing list