Overridden applyBatch and run all operations in one transaction.