Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor performance at new database libs. #586

Closed
rrguardo opened this issue Dec 18, 2019 · 4 comments
Closed

Poor performance at new database libs. #586

rrguardo opened this issue Dec 18, 2019 · 4 comments

Comments

@rrguardo
Copy link

rrguardo commented Dec 18, 2019

This old libs combinations works perfect:

  • python2.7
  • web.py==0.37
  • MySQL-python==1.2.5
  • dbutils==1.1

If the database pool is enable in threaded (greenlets) services, the database libs works perfect, the service is able to process huge amount of request and connections without delays. The redis default cache pool usually fail before the database pool at those libs.

But with new libs like below, the database pool become slow, even with small service loads we can observe more than 2 seconds delays at database libs and with normal load more than 30 seconds delay at pool processing queries:

  • python2.7 (not tested yet with python3.x but guess that could be the same slow?)
  • webpy==0.40
  • dbutils 1.1 or 1.3
  • pymysql or mysql.connector

mysqlclient get the best performance but yet we observe some bottleneck at db libs that was not present at old libs. (database pool maxconnections apparently is not working, maybe it is not compatible with webpy+dbutils combination)

@anandology
Copy link
Member

@rrguardo can you provide a sample code to reproduce this issue?

@rrguardo
Copy link
Author

rrguardo commented Mar 23, 2020

@anandology Just now read the message, will provide the code in next 24-48 hours.
I can't provide the real code because it is private. But I guess that any other small implementation using same libs will reproduce same problems, I will be working in build a new sample from zero.

@rrguardo
Copy link
Author

rrguardo commented Mar 24, 2020

Was working in distinct scripts to test the problem and until now, I am not able to replicate it locally in ubuntu OS using similar services (gevent StreamServer).

Part of the team believe that problem could be at online servers libs that use FreeBSD.
But problem could be too at a wrapper we use for web.db that somehow is not efficient with new webpy versions.

We are yet researching and busy with other tasks.

@iredmail
Copy link
Contributor

iredmail commented Jun 9, 2020

Close due to no sample code to reproduce the issue. Feel free to reopen with sample code.

@iredmail iredmail closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants