Requests that go on forever and no response

Hello! I use Datagrip to access my database and very often for very simple queries like: SELECT id FROM public.cosmetics t LIMIT 201 I get no response and the query never gets the answer
11 Replies
CustomEntity
CustomEntityOP3mo ago
And it only does it for my Xata databases
tsg
tsg3mo ago
hi, can you tell me your workspace id (it's in the URL). If I get that I can look at the logs. If you'd rather have it private, please open a support request.
cmck
cmck3mo ago
Hi, thanks for sharing your workspace ID, I can see some errors in the logs here from the 21st starting 21:05 UTC. I assume this was when you were running your queries?
CustomEntity
CustomEntityOP3mo ago
Yes, it probably is haha I've noticed that it does this on tables with about 1000 rows, I don't have the problem on tables with about ten rows
cmck
cmck3mo ago
Hi @CustomEntity thanks for your patience while we looked into this. Do you have any recent examples of the hanging select query? A rough timestamp of when you saw it last would help us diagnose the issue.
Jan H
Jan H2mo ago
Hi, not sure if the same, but I am seeing maybe similar with Ruby on Rails? Seems like kind of "cold-start" behavior? After what seems like not more that 5 minutes of inactivity, the next run of my app (DB query) takes so long it timeouts. In logs I can see connection to DB took 38 seconds. After that, all is OK until I am inactive few minutes again.
cmck
cmck2mo ago
Hi @Jan H, can you please open a ticket by contacting [email protected] ? Please include your workspace ID and any relevant timestamps, logs, error messages etc. and I'll take a look 👍
CustomEntity
CustomEntityOP4w ago
Hello! Sorry for the delay, it's a simple select all
CustomEntity
CustomEntityOP4w ago
No description
cmck
cmck4w ago
Thanks for sharing @CustomEntity , I can see the related call in the backend and looks like it took 4+ minutes to eventually return an error. I'll continue to investigate and keep you posted. Hey @CustomEntity thanks for bearing with me. As I suspected judging by the query, the query itself executes very quickly. There appears to be an issue in a hanging connection establishment. Does it happen for other queries or exclusively for this select from ability_media ? Also, if you have a recent timestamp in UTC of when you started a query that went on to hang, please let me know. The more up-to-date information I have, the better.

Did you find this page helpful?