BUG: CORE-2925 Break up insert batch to 1k size to prevent OOM.

It might be worth putting this in the configuration file, like we do for other services.