RUBY-533 Split bulk inserts into many messages
RUBY-533-batch-inserts updates after code review