It is for getting batched insertions. What usually happens is that you usually process items one by one (like when downloading photos from Facebook, you process them one by one), but in order to prevent a write for each processed entry, I queue the entries in a list, and call write when all data are processed.