Support for executemany in batches