ich habe ein Performance Problem mit mysql.connector.pooling.MySQLConnectionPool.
Code: Alles auswählen
dbconfig={
"database":"python",
"user":"python",
"host":"localhost",
"password":"python"
}
#start=timestamp = int(time.time())
pool = mysql.connector.pooling.MySQLConnectionPool(pool_name = "mypool",pool_size = 5, **dbconfig)
#end=timestamp = int(time.time())
#print "Wie lange? "+str(end-start)
Kann mir jemand einen Tip geben, was ich da machen kann?
Meine Daten:
Ubuntu Linux 14.04 LTS 64-Bit
Intel i7 8 x 4.00GHz
16 GB RAM
SSD-Festplatte
mysql-server 5.5.52
mysql-connector-python 2.1.3-1ubuntu14.04
Python 2.7.6