Opened 2 months ago
Last modified 2 months ago
#37366 assigned Cleanup/optimization
Update MySQL driver docs about gevent compat — at Version 2
| Reported by: | Caleb Hattingh | Owned by: | |
|---|---|---|---|
| Component: | Documentation | Version: | 6.1 |
| Severity: | Normal | Keywords: | mysql, gevent |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | 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 , 2 months ago
comment:2 by , 2 months ago
| Description: | modified (diff) |
|---|
I am claiming this ticket.