Large memory usage by Python driver on big batch insert`

Okay I have raised an issue, which also includes some simplified code: