diff --git a/supabase/README.md b/supabase/README.md index f4162276d..a056e6ee4 100644 --- a/supabase/README.md +++ b/supabase/README.md @@ -1,9 +1,11 @@ ## Running Supabase Benchmark ```bash -$ export PG_PASSWORD="" -$ export SUPABASE_HOST="" +$ export SUPABASE_CONNECTION_STRING="[...]" $ ./benchmark.sh ``` -The Supabase host looks something like: `db.oolfrgytrdoculplvizc.supabase.co` +By default, Supabase requires IPv6 connections. +This restriction can be bypassed using the "transaction pooler". +You can get its connection string from the Supabase "Connect to your project" UI. +It looks something like this: `postgresql://postgres.zlltjtdocmcqiqprpunq:[YOUR-PASSWORD]@aws-1-eu-north-1.pooler.supabase.com:6543/postgres` diff --git a/supabase/benchmark.sh b/supabase/benchmark.sh index 7f80489fd..391a2aabd 100755 --- a/supabase/benchmark.sh +++ b/supabase/benchmark.sh @@ -16,8 +16,8 @@ sudo apt-get install -y pigz wget --continue --progress=dot:giga 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' pigz -d -f hits.tsv.gz -psql -h ${SUPABASE_HOST} -p 5432 -d postgres -U postgres -t -c 'CREATE DATABASE test' -psql -h ${SUPABASE_HOST} -p 5432 -U postgres -d test -t