Supabase 为所有新项目加入 PgBouncer 连接池
Supabase 宣布即日起所有新项目都内置 PgBouncer 连接池,控制台 Database 区域可查看连接信息并修改 Pool Mode。官方推荐 Serverless 函数使用 Transaction 模式,该模式下连接仅在事务期间占用,但 prepared statements 等会话级功能不可用;Pool Size 目前固定为 15,暂不向老项目开放。
推荐理由:Supabase 新项目默认带上 PgBouncer 连接池,用 Serverless 直连 Postgres 的可以少踩连接被打满的坑。