How does mongose update in batches?