batchinsert repeated key handling with library