I'm investigating the executemany() api call to insert batches of records consumed from Kafka.
Does this API call operate on the batch as a whole, or does it call execute() for each insert? The source code seems like it does the latter, but I'm not 100% sure. If executemany() operates on the batch as a whole, is there some way to check if there were errors trying to insert any of the records?