Skip to content

Commit 26af017

Browse files
committed
switch primary datasource mode to Transaction Pooler
1 parent 5837cf3 commit 26af017

2 files changed

Lines changed: 34 additions & 25 deletions

File tree

.idea/workspace.xml

Lines changed: 22 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/application.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,20 @@ spring:
4040
exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
4141
datasource:
4242
primary:
43+
url: ${SUPABASE_PRIMARY_URL:jdbc:postgresql://aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres?sslmode=require&gssEncMode=disable}
44+
4345
# Direct Connection mode - port 5432
46+
# postgresql://postgres:[YOUR-PASSWORD]@db.dshmbsawwrbuycnivcjs.supabase.co:5432/postgres
47+
# url: ${SUPABASE_PRIMARY_URL:jdbc:postgresql://db.dshmbsawwrbuycnivcjs.supabase.co:5432/postgres}
48+
4449
# Transaction Pooler mode - port 6543
45-
url: ${SUPABASE_PRIMARY_URL:jdbc:postgresql://aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres}
50+
# postgresql://postgres.dshmbsawwrbuycnivcjs:[YOUR-PASSWORD]@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres
51+
# url: ${SUPABASE_PRIMARY_URL:jdbc:postgresql://aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres}
52+
53+
# Session Pooler mode - port 5432
54+
# postgresql://postgres.dshmbsawwrbuycnivcjs:[YOUR-PASSWORD]@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres
55+
# url: ${SUPABASE_PRIMARY_URL:jdbc:postgresql://aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres}
56+
4657
username: ${SUPABASE_PRIMARY_USERNAME:postgres.dshmbsawwrbuycnivcjs}
4758
password: ${SUPABASE_PRIMARY_PASSWORD}
4859
driver-class-name: org.postgresql.Driver

0 commit comments

Comments
 (0)