Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

MySQL Connector/Python vs MySQLdb with DBUtils.PooledDB (no replies)

$
0
0
Hi,

I did some very simple benchmarks with MySQL Connector/Python, MySQLdb and DBUtils.PooledDB.

1000 selects (1 thread)

Connector + pool : 20,9 sec
MySQLdb + pool : 4,0 sec
Connector : 13,3 sec (new connection every time)
Connector : 2,4 sec (same cursor)
Connector : 4,8 sec (same connection)

13,3 sec with new connections every time, but 20,9 sec with a pool?
How is this possible? Is it normal? Why is MySQLdb + pool 5 times faster?

Viewing all articles
Browse latest Browse all 384

Trending Articles