Answer the question
In order to leave comments, you need to log in
How to debug queries in query-cache?
Hey!
Noticed this interesting thing.
Input data:
5.6.30-76.3-log Percona Server (GPL), Release 76.3, Revision 3850db5
pymysqlpool==0.4.1
SELECT something FROM somethings WHERE something;
SET AUTOCOMMIT = 0;
SELECT something FROM somethings WHERE something;
from pymysqlpool import pool
import pymysql
...
...
...
if kwargs.has_key('max_active_connections'):
self.ConnectionPool.maxActiveConnections = kwargs.get('max_active_connections')
def getConnection(self):
return self.ConnectionPool.GetConnection()
def query(self, query):
connection = self.getConnection()
cursor = connection.getCursor()
rresult = None
try:
cursor.execute(query)
...
...
...
AUTOCOMMIT = 0
by default. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question