Is there a way in N1QL where i can use the rownum(currentrow) value to generate the Id?
Below is the example query i am planning to use.
UPDATE bucketName
SET STATUS = “NEW”,
ID = :#{#abc.Id} || ‘_’ || to_char( floor ((rownum - 1) / to_number(:#{#abc.maxRecords})) + 1 )
AND (STATUS IS NULL OR STATUS = ‘OPEN’)