(PDB-4504) Use batched inserts
(PDB-4504) Use batched inserts

Port of puppetlabs/puppetdb#3074 to partitioning work

puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb