-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed #35702 -- Removed connection pooling note for mysql drivers. #18512
Conversation
docs/ref/databases.txt
Outdated
These drivers are thread-safe and provide connection pooling. | ||
The MySQL Connector/Python driver is thread-safe and supports connection | ||
pooling, whereas mysqlclient does not have built-in connection pooling | ||
capabilities. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While MySQL Connector/Python
supports connection pooling through mysql.connector.pooling
source Django itself doesn't make use of it like we do with Postgres so I wonder if its even worth pointing out. Thoughts on that @sarahboyce and @apollo13 since you worked on fad334e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think its worth mentioning mysqlclient
, or should this note be removed altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in fdae943.
Yeah, I feel like the current sentence doesn't provide much value so we might just able to get rid of it? I also doubt that even if a MySQL client supported transparent pooling that it would be useable on Django without changes (ie reset timezone on pool change etc).
…On Sat, Aug 24, 2024, at 00:27, Simon Charette wrote:
***@***.**** commented on this pull request.
In docs/ref/databases.txt
<#18512 (comment)>:
> -These drivers are thread-safe and provide connection pooling.
The MySQL Connector/Python driver is thread-safe and supports
connection
pooling, whereas mysqlclient does not have built-in connection pooling
capabilities.
While `MySQL Connector/Python` supports connection pooling through
`mysql.connector.pooling` source
<https://dev.mysql.com/doc/connector-python/en/connector-python-connection-pooling.html>
Django itself doesn't make use of it like we do with Postgres so I
wonder if its even worth pointing out. Thoughts on that @sarahboyce
<https://github.com/sarahboyce> and @apollo13
<https://github.com/apollo13> since you worked on fad334e
<fad334e>.
—
Reply to this email directly, view it on GitHub
<#18512 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAT5C6CUF6PHG3HZ7BEEF3ZS6ZOXAVCNFSM6AAAAABNAJZSCOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENJYGE4DENZRGE>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
c2c176f
to
fdae943
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Hisham-Pak ⭐
Trac ticket number
ticket-35702
Branch description
This branch makes changes to docs to clarify
mysqlclient
does not have built-in connection pooling.Checklist
main
branch.