How do I add a bin to a set with a default value?


Consider set1 having 500 records. It has key and bin1. Need to add bin2 with default value. Example like below

   'bin2' : 'value2'. 

Is there any way to add value without get each key from client , add default value to bin2 and put using client.

Hi @Gajendra, a background query should be able to handle this for you. You can query the set and apply a write operation to each record to add the bin:value. You could even use an expression if you wanted to employ some logic to define the bin value.

Hope that helps!

1 Like

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.