Can we use rocksdb_writebatch_putv_cf() to writing multiple key/values atomically?

I want to write multiple key/values atomically to rocksdb to improve the performance, so I was using rocksdb_writebatch_putv_cf()
But when I was trying to lookup single key from the batch which I had written previously with rocksdb_writebatch_putv_cf() failed some times as putv concatenates the keys and values.
But interestingly it works sometimes. I am not sure why it works.
But if rocksdb_writebatch_putv_cf() can be used to write multiple key/values atomically and be able to read individual key, it would be great.
What is the right way to use rocksdb_writebatch_putv_cf()