You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems related to pymysql driver.
For upserts, moving this to the execute command solves the issue:
# Disable the new MySQL 8.0.17+ default behavior of requiring an alias for ON DUPLICATE KEY UPDATE# This behavior is not supported by pymysql driverifself.engine.driver=="pymysql":
self.engine.dialect._requires_alias_for_on_duplicate_key=False
But it appears that the deletes are also executed one by one.
Replacing pymysql with mysql-connector-python seems to solve the problem.
spicy-sauce
changed the title
relational.write - SQL statements execute individually instead of in bulk for MySQLrelational.write - SQL statements are executed individually instead of in bulk for MySQL
Sep 19, 2024
… of in bulk for MySQL #373 (#375)
* set dialect._requires_alias_for_on_duplicate_key for pymysql's engine dialect
* update json schemas
* formatting
* docstring
---------
Co-authored-by: github-actions <[email protected]>
No description provided.
The text was updated successfully, but these errors were encountered: