MySQL Forums
Forum List  »  Connector/Python

MySQL Connector/Python vs MySQLdb with DBUtils.PooledDB
Posted by: Normann Koldrack
Date: September 23, 2012 12:12PM

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?

Options: ReplyQuote


Subject
Written By
Posted
MySQL Connector/Python vs MySQLdb with DBUtils.PooledDB
September 23, 2012 12:12PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.