6 ms·
gevent runs most of the protocol implementations written on top of standard socket and ssl modules. For example, pure Python mysql-connector works fine with gev
by denik 16y ago
gevent runs most of the protocol implementations written on top of standard socket and ssl modules. For example, pure Python mysql-connector works fine with gevent.
There's also a mysql driver for gevent implemented as an extension: http://github.com/mthurlin/gevent-MySQL http://github.com/mthurlin/gevent-MySQL
- suhail 16y agoI wouldn't recommend mysql-connector in production... A while back we avoided gevent because of this but used eventlet instead because they had a native MySQL patched driver. Performance on the pure connector was just too bad.
- denik 16y agoI mentioned mysql-connector as an example of a complex enough library that runs with gevent via monkey patching (in reply to "gevent only solves the most simple conversions by monkey patching", which is wrong). Have you tried gevent-MySQL? It's written in Cython and as far as I know is fast.