conn = MySQLdb.connect(read_default_file='~/.my.cnf')
curs = conn.cursor(MySQLdb.cursors.SSCursor)
curs.execute('SELECT * FROM big_table')
curs.fetchone()
curs.execute('SELECT NOW()')
Best way to iterate through all rows in a DB-table