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

Slow query response time when using version 42.2.21 #2180

Closed
poirierlouis opened this issue Jun 14, 2021 · 17 comments
Closed

Slow query response time when using version 42.2.21 #2180

poirierlouis opened this issue Jun 14, 2021 · 17 comments

Comments

@poirierlouis
Copy link

Describe the issue
When querying, the time took to respond is very long / slow comparing to older versions (42.2.20 / 42.2.6).
While using the driver through a web application using Play and Hibernate, response time goes from ~7 seconds to ~36 seconds.

Driver Version?
42.2.21

Java Version?
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)

OS Version?
Microsoft Windows [version 10.0.19042.1052]

PostgreSQL Version?
PostgreSQL 11.5, compiled by Visual C++ build 1914, 64-bit

To Reproduce
Problem faced with a web application using Play v2.8.8 and Hibernate v5.5.0.
I plan to fill this issue with driver logs and minimal example when I'll have more time, likely tomorrow.

However, application code, database, OS, java version, etc. I've made sure that nothing changed.
I face this slow response time only when using 42.2.21. As soon as I use another version (42.2.20 or 42.2.6) response time goes back to normal.

Expected behavior
Driver performance should be at least as fast as previous versions.

Logs
Coming soon...

I submit this issue for now as I think this performance downside is quiet huge. It's a warning for others.

@davecramer
Copy link
Member

Awesome, looking forward to the details.

@jorsol jorsol reopened this Jun 15, 2021
@davecramer
Copy link
Member

Strange, the is the second time I've closed an issue by mistake

@davecramer
Copy link
Member

So I looked at the changes and the only possible change that might impact performance is 4fa2d5b and I can't see how...

@asaarnak
Copy link

Using 42.2.21 running our 300+ unit tests takes 3+ mins, using 42.2.20 it takes 1+ mins.

@mroloux
Copy link

mroloux commented Jun 16, 2021

We're having the same issue. Our builds slowed down a lot with 42.2.21. And even on production, query times went up.

@davecramer
Copy link
Member

Can someone turn logging on and get some logs ? Or give me a repeatable test case

@davecramer
Copy link
Member

@mroloux @asaarnak are you both using SSL connections ?

@mroloux
Copy link

mroloux commented Jun 16, 2021

Yes, I'm using SSL (on a Heroku database).

@davecramer
Copy link
Member

Thanks, I know what the issue is. Fixing it may take some time, in the meantime downgrade to 42.2.20

@mroloux
Copy link

mroloux commented Jun 16, 2021 via email

@davecramer
Copy link
Member

So there is no "simple" solution to this and keeping 4fa2d5b I will have to revert this commit and release a new version.

@poirierlouis
Copy link
Author

Thank you 👍
Sorry I couldn't provide a clear example. It's great that you found it quickly.

davecramer added a commit that referenced this issue Jun 16, 2021
…2180) (#2183)

* revert 4fa2d5b to fix the regression introduced. Fixes [Issue 2180](#2180)

* Update changelog and release notes
@davecramer
Copy link
Member

before I release this, can you confirm that this https://oss.sonatype.org/content/repositories/orgpostgresql-1273/org/postgresql/postgresql/ fixes it ?

@poirierlouis
Copy link
Author

Works just fine with this release on my environment 👌

@davecramer
Copy link
Member

@poirierlouis thanks for testing it.

@MrEasy
Copy link

MrEasy commented Jun 16, 2021

@davecramer quick test on my side also shows lower execution times again with .22 👍🏻

@davecramer
Copy link
Member

OK, it's been released and pushed to maven central. Thanks for testing guys and apologies for the regression.

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

6 participants