Java incrBulk() and asyncIncrBulk() are missing?

Hi!

Can I find any multi/bulk key incr method in the Java API, similar to these?

Perl: Multi version of “arithmetic”

incr_multi(@keys)
decr_multi(@keys)
incr_multi( [key, amount], … )
decr_multi( [key, amount], … )

JavaScript: Now changed to arithmeticMulti()

http://review.couchbase.org/#/c/30792/

ps:

I’v already opened a JIRA ticket around this issue -> if You don’t mind.

http://www.couchbase.com/issues/browse/JCBC-402

Cheers,
Loolek

You are right, those are currently not exposed. We will consider it for a future API enhancement, but I’m not sure how likely it is right now. You can just run your own loop and add them, this shouldn’t give you less performance.

Okay, thanks!

I was just wandering >>> because 1 OP is BETTER than 4 or 6 OP :wink:

Cheers,
Loolek

Daschl, in API level the “MultiIncrImpl” is just a hidden simple loop in the client driver?

Cheers,
Loolek

You can just run your own loop and add them, this shouldn’t give you less performance.

Okay, but than → my problem will be AGAIN the atomicity :frowning:

We have to be SURE about these looped INCR calls will work atomic…

So my question is:

Can I use any LOCK for these INCR calls (or who will care about the atomicity)?!

Thank You in Advance,
Loolek