Closed trevor-pope closed 1 year ago
@trevor-pope, batches are not supported by sqlalchemy-spanner
dialect, but it allows to go to the underlying API, where Spanner batches methods are available. See the comment:
https://github.com/googleapis/python-spanner-sqlalchemy/issues/301#issuecomment-1410136206
I'm investigating how we can make Spanner batches work with SQLAlchemy, but no ETAs for now.
https://cloud.google.com/spanner/docs/modify-mutation-api
Since Partitioned DML doesn't support insertions, the best we can do is batching inserts. I am trying to avoid the 40000 mutation limit, and doing the batching on my end is not very performant. For instance: