Current MySQL Driver Support? #12332
-
Hi, I'm trying to migrate to SqlAlchemy 2.0 and I hit a significant performance issue with the pymysql driver (caused by PyMySQL/PyMySQL#898). I am investigating what driver to migrate to, and I found a warning in the documentation:
I want to check that this is still true? And not outdated documentation? And hence I should try mysqlclient as the best alternative to PyMySQL (I did look at the SqlAlchemy Jenkins dashboard but my familiarity with the Jenkins UI isn't good enough for me to spot what drivers are being tested against). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Hi, That's still the case. jenkins uses tox, so you can look at it for info regarding what's tested: Lines 38 to 40 in 3c69e9d and Lines 68 to 69 in 3c69e9d You may also try the mariadb connection, since I think it will work also when connecting to mysql |
Beta Was this translation helpful? Give feedback.
-
mysqlclient is the best driver to use, correct |
Beta Was this translation helpful? Give feedback.
-
PyMySQL and mysqlclient uses same regular expression for executemany. I am not sure that using mysqlclient fix your issue. Driver is low level library. It doesn't parse SQL correctly. |
Beta Was this translation helpful? Give feedback.
Hi,
That's still the case. jenkins uses tox, so you can look at it for info regarding what's tested:
sqlalchemy/tox.ini
Lines 38 to 40 in 3c69e9d
and
sqlalchemy/tox.ini
Lines 68 to 69 in 3c69e9d
You may also try the mariadb connection, since I think it will work also when connecting to mysql