Reputation: 9956
I have a django app running on gunicorn with mysql as the database. I have added gevent in order to deal with multiple file uploads, but I am not sure what is my best driver option for making gevent play well with a mysql database.
(Please note the database already contains a large amount of data, so moving to postgres is an unattractive option)
Upvotes: 2
Views: 2841
Reputation: 3864
You probably want to use pymysql since it can be monkey-patched. I haven't used it myself yet, but here's a YouTube video of a presentation called "Django on Gevent" by Cody Soyland at DjangoCon earlier this year: http://www.youtube.com/watch?v=nocGRsytBkk
Pymysql can be found here: https://github.com/petehunt/PyMySQL
Upvotes: 1
Reputation: 13496
Did you check Projects Using Gevent?
Edit: According to above page gevent-MySQL is no longer supported. That makes ultramysql the only viable option.
Upvotes: 1