Adding support for document-by-document mass update