You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is handled by the Node.js driver you provide (like `pg`), not by Prisma's connection URL parameters. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool) for v7 defaults and configuration.
163
+
:::warning[Prisma ORM v7: Connection pool defaults have changed]
164
+
165
+
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is now handled by the `pg` driver, which has **different defaults** than Prisma ORM v6:
166
+
167
+
-**Connection timeout**: `0` (no timeout) vs. v6's `5s`
168
+
-**Idle timeout**: `10s` vs. v6's `300s`
169
+
170
+
If you experience timeout issues after upgrading, you may need to configure your driver adapter to match v6 behavior. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#postgresql-using-the-pg-driver-adapter) for detailed configuration examples.
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is handled by the Node.js driver you provide (like `mariadb`), not by Prisma's connection URL parameters. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool) for v7 defaults and configuration.
133
+
:::warning[Prisma ORM v7: Connection pool defaults have changed]
134
+
135
+
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is now handled by the `mariadb` driver, which has **different defaults** than Prisma ORM v6:
136
+
137
+
-**Connection timeout**: `1s` vs. v6's `5s`
138
+
-**Idle timeout**: `1800s` vs. v6's `300s`
139
+
140
+
If you experience timeout issues after upgrading, you may need to configure your driver adapter to match v6 behavior. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#mysql-or-mariadb-using-the-mariadb-driver) for detailed configuration examples.
|`trustServerCertificate`| No |`false`| Configures whether to trust the server certificate. |
132
132
|`trustServerCertificateCA`| No || A path to a certificate authority file to be used instead of the system certificates to authorize the server certificate. Must be either in `pem`, `crt` or `der` format. Cannot be used together with `trustServerCertificate` parameter. |
133
133
134
-
:::tip[Prisma ORM v7 connection pooling]
135
-
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is handled by the Node.js driver you provide (like `mssql`), not by Prisma's connection URL parameters. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool) for v7 defaults and configuration.
134
+
:::warning[Prisma ORM v7: Connection pool defaults have changed]
135
+
136
+
In Prisma ORM v7, [driver adapters](/orm/overview/databases/database-drivers) are the default for relational databases. Connection pooling is now handled by the `mssql` driver, which has **different defaults** than Prisma ORM v6:
137
+
138
+
-**Connection timeout**: `15s` vs. v6's `5s`
139
+
-**Idle timeout**: `30s` vs. v6's `300s`
140
+
141
+
If you experience timeout issues after upgrading, you may need to configure your driver adapter to match v6 behavior. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#sql-server-using-the-mssql-driver) for detailed configuration examples.
142
+
136
143
:::
137
144
138
145
### Using [integrated security](https://learn.microsoft.com/en-us/previous-versions/dotnet/framework/data/adonet/sql/authentication-in-sql-server) (Windows only)
Copy file name to clipboardExpand all lines: content/200-orm/200-prisma-client/000-setup-and-configuration/050-databases-connections/115-connection-pool.mdx
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,24 @@ Here are the default connection pool settings for the `pg` driver adapter:
connectTimeout: 5_000, // v6 connect_timeout was 5s
108
+
idleTimeout: 300, // v6 max_idle_connection_lifetime was 300s (note: in seconds, not ms)
109
+
})
110
+
```
111
+
112
+
</details>
113
+
74
114
:::tip
75
115
Refer to the [MariaDB Connector/Node.js pool options](https://mariadb.com/docs/connectors/mariadb-connector-nodejs/connector-nodejs-promise-api#pool-options) for configuration and tuning guidance.
76
116
:::
@@ -85,6 +125,30 @@ Here are the default connection pool settings for the `mssql` driver adapter:
Copy file name to clipboardExpand all lines: content/200-orm/800-more/300-upgrade-guides/200-upgrading-versions/400-upgrading-to-prisma-7.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,14 @@ This change aligns with the move to make the main Prisma Client as lean and open
175
175
instance, if you are using Prisma Postgres, you now need the `@prisma/adapter-pg` adapter. This also
176
176
means the signature for creating a new Prisma Client has changed slightly:
177
177
178
+
:::warning[Connection pool defaults have changed]
179
+
180
+
Driver adapters use the connection pool settings from the underlying Node.js database driver, which may differ significantly from Prisma ORM v6 defaults. For example, the `pg` driver has no connection timeout by default (`0`), while Prisma ORM v6 used a 5-second timeout.
181
+
182
+
**If you experience timeout issues after upgrading**, configure your driver adapter to match v6 behavior. See the [connection pool guide](/orm/prisma-client/setup-and-configuration/databases-connections/connection-pool#prisma-orm-v7-driver-adapter-defaults) for detailed configuration examples for each database.
0 commit comments