The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
grammar
Coppled0aa187d6be9
diff --git a/apps/www/_blog/2023-08-11-supavisor-1-million.mdx b/apps/www/_blog/2023-08-11-supavisor-1-million.mdxindex 2e07f77d88a..3f9fb69a6e6 100644--- a/apps/www/_blog/2023-08-11-supavisor-1-million.mdx+++ b/apps/www/_blog/2023-08-11-supavisor-1-million.mdx@@ -251,23 +251,28 @@ The scalability can be further enhanced by adding more databases (or read-replic### Supavisor on Supabase Platform-Additionally we compared current setup with pgbouncer and the new Supavisor setup on Supabase Platform in the cloud, so you will be aware how it may affect query duration.+We compared our current PgBouncer setup with the new Supavisor setup to assess any impact on query duration.-- Right now every Supabase project comes with its own pgbouncer instance, running on the same instance as the database to ensure that the latency is as low as possible. But this setup comes with a trade-off: it uses the same compute resources as your database.++*Current architecture*++Currently, every Supabase project comes with its own PgBouncer server running on the same instance as the Postgres database to ensure that the latency is as low as possible. But this setup comes with a trade-off: it uses the same compute resources as your database.<Imgalt="diagram supavisor 1 instance dark"src="/images/blog/launch-week-8/day-5/supavisor-tests--pgbouncer.svg"/>-- With Supavisor, you connect to a distinct multi-tenant Supavisor cluster through load-balancer. This cluster maintains a connection pool to your database. In this case the pooler doesn't consume your database's CPU and RAM resources, but it does involve extra network communication.+*Supavisor architecture*++In the future, you connect to a distinct multi-tenant Supavisor cluster through a load-balancer. The Supavisor cluster maintains a connection pool to your database. In this case the pooler doesn't consume additional CPU and RAM resources on the database server, but it does involve extra network latency.<Imgalt="diagram supavisor 1 instance dark"src="/images/blog/launch-week-8/day-5/supavisor-tests--supavisor-and-supabase.svg"/>-We were running 5,000 queries per second for each configuration, and at this time we decided to make an experiment with `insert` query. We also enabled PostGIS extension to store coordinates:+We ran 5,000 queries per second for each configuration, this time experimenting with `insert` query. To make the expreriment more realistic, we enabled the PostGIS extension to store coordinates:```sqlinsert into positions (@@ -292,7 +297,7 @@ values ();```-We observed additional 2ms required for query to be executed for Supavisor cluster compared to PgBouncer running on the same machine as the database itself.+We observed an additional 2ms required each query to be executed on the Supavisor architecture compared to PgBouncer architecture.| | Query Duration with Supavisor | Query Duration with PgBouncer || ------ | ----------------------------- | ----------------------------- |