Skip to content

Commit

Permalink
docs(supabase): update connection pooling configuration
Browse files Browse the repository at this point in the history
Modify Supavisor connection pool settings in documentation:
- Change pool mode from transaction to session
- Increase default pool size from 20 to 50
  • Loading branch information
jumski committed Jan 22, 2025
1 parent a172625 commit 6e5e9c0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ If not, see Supabase's [installation guide](https://supabase.com/docs/guides/cli
1. ### Setup Connection Pool

Modify the `db.pooler` section in your `supabase/config.toml` file
to switch to Supavisor **Session Mode** connection pooling:
to switch to Supavisor **Session Mode**. It's also good to increase the
default pool size:

```diff lang="toml"
[db.pooler]
Expand All @@ -70,7 +71,8 @@ If not, see Supabase's [installation guide](https://supabase.com/docs/guides/cli
- pool_mode = "transaction"
+ pool_mode = "session"
# How many server connections to allow per user/database pair.
default_pool_size = 20
- default_pool_size = 20
+ default_pool_size = 50
# Maximum number of client connections allowed.
max_client_conn = 100
```
Expand Down

0 comments on commit 6e5e9c0

Please sign in to comment.