Does it possible to set different ttl for keys in the batch write request?
Do you mean set different TTL for different keys in the same batch write? (That can be done.)
Yes, set different expiration for keys on batch write operations.
Oh, I found. I can do it in on BatchWrite object creation
Yes, you are on it. You will use the overloaded constructor that uses BatchWritePolicy and for each record, you can cusotmize the expiration attribute. In Java client, see BatchOperate example code except it uses the BatchWrite constructor that does not use the BatchWritePolicy but gives the overall code implementation example.
This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.