Menu

cursor.close() bug?

Help
wrygiel
2007-08-21
2012-09-19
  • wrygiel

    wrygiel - 2007-08-21

    "if you aren't sure it's a bug, try posting in the Help forum first"

    Python 2.5.1 (r251:54863, Apr 28 2007, 10:57:35)
    MySQL: 5.1.16-beta PLD Linux Distribution MySQL RPM
    MySQLdb.version_info: (1, 2, 2, 'final', 0)

    I'm comparing (reads only, no writes) two big (>1GB) databases with SSDictCursors. Sometimes I need to close the cursor in the middle of a query. As it happens, process hangs on the cursor.close() eating up all memory, I had to kill it every time. Is it possible it is NOT a bug?

     
    • wrygiel

      wrygiel - 2007-08-21

      Followup: When I use SSCursors (instead SSDictCursors) - at first it's the same - memory starts to fill up. When it reaches 50% (of available RAM), I get an Exception:

      Exception _mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query') in <bound method SSCursor.del of <MySQLdb.cursors.SSCursor object at 0x860b88c>> ignored

      Maybe it is MySQLs (not MySQLdbs) fault?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.