Opened 3 weeks ago

Last modified 2 weeks ago

#37366 assigned Cleanup/optimization

Update MySQL driver docs about gevent compat

Reported by: Caleb Hattingh Owned by: Caleb Hattingh
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 Caleb Hattingh)

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 (5)

comment:1 by Caleb Hattingh, 3 weeks ago

I am claiming this ticket.

comment:2 by Caleb Hattingh, 3 weeks ago

Description: modified (diff)

comment:3 by Md. Saikat Islam, 3 weeks ago

Owner: set to Caleb Hattingh
Status: new → assigned

comment:4 by Lily, 3 weeks ago

Triage Stage: Unreviewed → Accepted

comment:5 by Jacob Walls, 2 weeks ago

Has patch: set
Note: See TracTickets for help on using tickets.
Back to Top