Skip to content

Commit

Permalink
docs(supabase): update connection pooler configuration
Browse files Browse the repository at this point in the history
Modify Supavisor session mode settings in documentation
- Adjust pool mode from transaction to session
- Update default pool size from 20 to 50
  • Loading branch information
jumski committed Jan 22, 2025
1 parent e0e6726 commit 97b7e3e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ 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**. It's also good to increase the
default pool size:
to switch to Supavisor **Session Mode**:

```diff lang="toml"
[db.pooler]
Expand All @@ -71,8 +70,7 @@ 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 = 50
default_pool_size = 20
# Maximum number of client connections allowed.
max_client_conn = 100
```
Expand Down

0 comments on commit 97b7e3e

Please sign in to comment.