Skip to content

Commit

Permalink
chore: link to Neon docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruheni committed Nov 3, 2023
1 parent 8143b57 commit 1f009c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/300-guides/050-database/890-neon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Please make sure your database server is running at `ep-white-thunder-826300.us-

This error most likely means that the connection created by Prisma Client timed out before the Neon compute was activated.

A Neon compute has two main states: _Active_ and _Idle_. Active means that the compute is currently running. If there is no query activity for 5 minutes, Neon places a compute into an idle state by default.
A Neon compute has two main states: _Active_ and _Idle_. Active means that the compute is currently running. If there is no query activity for 5 minutes, Neon places a compute into an idle state by default. Refer to Neon's docs to [learn more](https://neon.tech/docs/introduction/compute-lifecycle).

When you connect to an idle compute from Prisma, Neon automatically activates it. Activation typically happens within a few seconds but added latency can result in a connection timeout. To address this issue, your can adjust your Neon connection string by adding a `connect_timeout` parameter. This parameter defines the maximum number of seconds to wait for a new connection to be opened. The default value is 5 seconds. A higher setting should provide the time required to avoid connection timeout issues. For example:

Expand Down

0 comments on commit 1f009c1

Please sign in to comment.