Improved batch performance and added functional test for validating that the actual database update worked.
Improved batch performance and added functional tests