Bug #80621 | Memory leak when using cursor(named_tuple=True) | ||
---|---|---|---|
Submitted: | 4 Mar 2016 23:29 | Modified: | 28 Jul 2017 13:33 |
Reporter: | Piotr Jurkiewicz (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / Python | Severity: | S2 (Serious) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[4 Mar 2016 23:29]
Piotr Jurkiewicz
[4 Mar 2016 23:32]
Piotr Jurkiewicz
Patch adding caching of namedtuple classes
Attachment: named_tuple_cache.patch (text/x-patch), 1.02 KiB.
[4 Mar 2016 23:32]
Piotr Jurkiewicz
Patch adding caching of namedtuple classes (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: named_tuple_cache.patch (text/x-patch), 1.02 KiB.
[5 Mar 2016 5:49]
MySQL Verification Team
Hello Piotr Jurkiewicz, Thank you for the report and contribution. Thanks, Umesh
[14 Oct 2016 8:20]
Ondrej Medek
Please, fix this bug. MySQLCursorNamedTuple is unusable for a long running application, now. Or document the danger of the MySQLCursorNamedTuple. The tupple cache may be per cursor or per connection.
[28 Jul 2017 13:33]
Paul DuBois
Posted by developer: Fixed in 2.1.7. For cursors created with named_tuple=True, MySQLCursorNamedTuple objects could leak memory. Thanks to Piotr Jurkiewicz for the patch on which this fix was based.