Performance Problem mit mysql.connector.pooling.MySQLConnectionPool
Verfasst: Samstag 24. September 2016, 08:38
Hallo,
ich habe ein Performance Problem mit mysql.connector.pooling.MySQLConnectionPool.
Um pool zu initialisieren, braucht mein Rechner 20 Sekunden. Ist das ein normaler Wert? Für mich ist das zu lange. Arbeite zum ersten Mal mit so einem Connector.
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
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