I have to update n
records. Due to some limitations, I cannot update more than k
records in one go. So I want to do n/k
iterations serially, and in each iteration update k
records.
Is there a generic 3rd party library for splitting work load and doing it in batches (like how I want)? Almost all my googling pointed me to libraries which can parallelize work, but here I want to serialize it in batches.
I can own library, but I wanted to know if there was a 3rd party library that has some additionally capabilities like, ability to do some pre-work before and/or post-work after, the work, and doing something before and after each batch.