Python & MySQL

Andy Dustman farcepest at gmail.com
Thu Apr 7 14:39:47 EDT 2005


jason.massey at gmail.com wrote:
> Okay,
>
> I had the brilliant idea right after posting to google the newsgroups
> on this.
>
> db = MySQLdb.connect(user=database_user,passwd=database_password)
>
> db.autocommit(True)   <--- One little line!

You would be better off executing db.commit() periodically (at the end
of your transaction).




More information about the Python-list mailing list