Mysql autocommit's relationship with query cache

100 views Asked by At

When I use python's mysqldb query data from db, my query takes around 1-3 seconds. But when I add conn.autocommit(True), the query works very quickly (less than 1 second). Is there any relationship between query cache and autocommit?

1

There are 1 answers

0
binbincai On

I found the reason. it's mysql's python-connector bug.