-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Some of our queries are hanging #1517
Comments
Hmm, can you try to query for active SQL queries to figure out that they might be just taking long? https://www.perplexity.ai/search/postgres-list-all-active-sql-q-c.B7ksJMRcea_2L4ENDqAg also running an |
The query I used to get the first codeblock was:
The transaction appears idle, as you can see with the value of the 'state' column. There are no active queries. I think this is a problem with the transaction not actually being committed or the library itself hanging or something. This is the result of running your query
|
I don't think this is a timing/query performance problem because the query has been active for seven hours now and this is a development database with very few rows. I have enabled query logging on the service, and tried every query I saw using PSQL, and they all returned quickly. |
Hmm. Please try upgrading to https://github.com/steebchen/prisma-client-go/releases/tag/v0.47.0 for now which I've just released which includes the latest Prisma engine. If this still gives you the same issue, it would be worth to check whether the same query gives you issues locally using the JS client. |
One of our queries regularly hangs inside a transaction on certain datasets. When I check postgres it looks like this:
The query looks like this:
In this particular case, this query hangs forever unless ctx is given a deadline.
Other queries return fine.
Can add more details in a DM
The text was updated successfully, but these errors were encountered: