Search code examples
javaaerospike

Aerospike - LDT Top Record Create Error


I am getting the error when trying to put an item into the large list. I am using the following things in my project:

  • Aerospike java client
  • ldt-enabled set to true
  • Following is the code where error throws up

    LargeList llist = client.getClient().getLargeList(new WritePolicy(), key, binName);

    llist.update(list);


Solution

  • Solved the issue by upserting the value in the large list one by one instead of a value list.

    for(Object listItem: java.util.list){
    llist.update(Value.get(listItem))
    }