Opened 60 minutes ago
Last modified 50 minutes ago
#37366 new Cleanup/optimization
Update MySQL driver docs about gevent compat
| Reported by: | Caleb Hattingh | Owned by: | |
|---|---|---|---|
| Component: | Documentation | Version: | 6.1 |
| Severity: | Normal | Keywords: | mysql, gevent |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
mysqlclient is the "recommended choice", in bold in the docs, but it turns out that it is not compatible with gevent, since gevent cannot monkey-patch the networking code inside the native binary. I want to update the docs to point that out and also add the pure-Python PyMySQL library as an additional driver that is compatible with gevent.
I discovered this after several years using mysqlclient and gunicorn together (with gevent workers), due to concurrency problems. The root cause was difficult to diagnose and these proposed docs would have helped.
Change History (2)
comment:1 by , 60 minutes ago
comment:2 by , 50 minutes ago
| Description: | modified (diff) |
|---|
I am claiming this ticket.