You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WriteBatch method loops over the data passed in but only writes in batches (thus the name). The problem is that if a single element is passed in, the main loop only adds an entry to the batch job and exits: after the loop, there is a catched to flush any incomplete batch, but that checks for index != 0
if (index != 0 && (index + 1) % batchSize == 0)
That check will simply cause it to not execute if the list passed in only add 1 element.
The text was updated successfully, but these errors were encountered:
The WriteBatch method loops over the data passed in but only writes in batches (thus the name). The problem is that if a single element is passed in, the main loop only adds an entry to the batch job and exits: after the loop, there is a catched to flush any incomplete batch, but that checks for index != 0
That check will simply cause it to not execute if the list passed in only add 1 element.
The text was updated successfully, but these errors were encountered: