I still have problems with insert/update of multiple items. The thing is I have a list of N items, each of which (item) I want to insert. But if an item with the same unique key already exists, I want to have it updated instead. (An item contains a unique key.) So basically I want to upsert each individual item using a single roundtrip.
Of course I can do this item by item, but I wish I could do this using a batch, so I don't need N roundtrips.
Is there a way of doing this (Java)?