Menu

Slow SELECT queries?

Help
Anonymous
2002-10-08
2012-09-19
  • Anonymous

    Anonymous - 2002-10-08

    Hi,

    I seem to be having a bit of trouble with MySQLdb queries taking a lot longer than the same query in the 'mysql' client program. I've tried using the SSCursor (server side), but that just makes MySQLdb crash, either with a Segmentation fault, or a Python assertion error (!).

    The query is not all that large (50k rows, 2-300 bytes per row). In the mysql client, it returns in 17 seconds. The exact same query using MySQLdb takes 33 (!) seconds to return from cursor.execute(query). Does anyone know why this might be happening?

    Using Python 2.1.3 and the current stable MySQLdb.

    Freddie

     
    • Anonymous

      Anonymous - 2002-10-08

      Argh, double post, sorry.

       

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.