I have a job that currently writes to a writeBatch sequentially. I want to split it into a few threads, since writing to a writeBatch is not thread-safe; I thought that each thread would have its writeBatch, and at the end, all batches will be merged into one to keep the write atomic.
I didn't find an API for it. Does one exist? Any alternative approach I can take?