N
Neon5mo ago
absent-sapphire

issue with query performance vs query duration

hey there. i'm running into issues where queries are taking ~1ms to execute+plan but instead of returning within ~5ms they sometimes take up to 6 seconds.
No description
4 Replies
absent-sapphire
absent-sapphireOP5mo ago
my max_connections is 4k, with 531 connections out of them 490 idle. i've set session_timeout to 15s for both anonymous and authenticated roles, yet some queries are taking >60s via monitoring->active queries and then there's this error when opening the monitoring (and in the vercel logs themselves) Server error (HTTP status 500): {"message":"Failed to acquire permit to connect to the database. Too many database connection attempts are currently ongoing.","code":"","detail":null,"hint":null,"position":null,"internalPosition":null,"internalQuery":null,"severity":"","where":null,"table":null,"column":null,"schema":null,"dataType":null,"constraint":null,"file":null,"line":null,"routine":null} the project ID is fragrant-wave-93328962
conscious-sapphire
conscious-sapphire5mo ago
Hi, this could be due to different issues, possibly rate limiting at our proxy. For a proper assessment, I recommend contacting Neon Support for this one: https://console.neon.tech/app/projects?modal=support
absent-sapphire
absent-sapphireOP5mo ago
alright, thanks! hey @Daniel sorry but is there any estimate on when support might get back? we're pretty much blocked on everything right now
conscious-sapphire
conscious-sapphire5mo ago
I'll ping them. Do you have a support ticket number?

Did you find this page helpful?