RSET API : rebalance fail

I have met a difficulty with lower performance :

loading 390000 items into cb needs more than 12min unsecurely, which is not what i want.

And another question: the sdk is sensitive to timeout? and how should i set the getandlock’ expire in case of upsert failing?