Hey π I hope this is the right place
Hey π I hope this is the right place to ask.
My team is hosting a project on Vercel, and we are having some trouble with cold-starts (I suspect) on our Neon postgres database.
What ends up happening is that the call from our Vercel app times out after 30 seconds waiting for a call to neon.
We are using Drizzle, and haven't had these issues until we recently set up local development with psql in addition to running in the cloud. We followed Neon guides on this, and it would be weird if this was the issue, as calling the app after 1 minute returns the call quickly, and it will as long as the DB is kept "hot". Our DB is running in E
urope. I've read cold starts should not take 30 seconds+ Any clue on what could be wrong, or where to start looking?
Edit: I found the link to support-tickets for neon and submitted one there instead. Cheers.
1 Reply
evident-indigoβ’7mo ago
Support should be able to help you with this.
Another good resource is our examples repo. There are a couple of Drizzle Next.js examples there that could be helpful, like this one:
https://github.com/neondatabase/examples/tree/main/with-nextjs-drizzle-local-vercel
GitHub
examples/with-nextjs-drizzle-local-vercel at main Β· neondatabase/ex...
Examples and code snippets demonstrating common ways of integrating Neon with various frameworks and languages. - neondatabase/examples