An operation on my android app's table takes place in batches of N rows. I have a field batch_id
in my table which indicates the batch that row belongs to (the first N rows have X as it's batch_id
, the next N has Y and so on). The operation on a batch might end up either as a success or a failure. Depending on the result of the operation, I will update the status
of the rows with that batch_id
.
Assuming that the batch_id
field is initially empty for all entries, how do I efficiently do batching of N rows on an android table?