Skip to content

GCP BigQuery dialect use_insertmanyvalues_wo_returning enablement #12038

Discussion options

You must be logged in to vote

the official way one uses the Python DBAPI to process many rows efficiently is the executemany method. This is where all DBAPIs should have an existing implementation to receive any number of dictionaries or tuples and process them in the fastest way possible. In the absence of any need to deliver server-generated information about each recordset after it's processed, executemany() is what SQLAlchemy Core and ORM use normally for this purpose.

The way that executemany works is up to the driver. For example, the MySQLClient DBAPI converts INSERT statements into a single, batched INSERT in a similar way as SQLAlchemy's insertmanyvalues feature. The pyodbc dialect includes a similar feature …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@jlynchMicron
Comment options

@zzzeek
Comment options

@jlynchMicron
Comment options

@zzzeek
Comment options

Answer selected by jlynchMicron
@jlynchMicron
Comment options

@jlynchMicron
Comment options

@zzzeek
Comment options

@jlynchMicron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants