The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add docs for polyscale integration
Sam Aybara15c63f11abe
diff --git a/apps/reference/docs/guides/integrations/polyscale.mdx b/apps/reference/docs/guides/integrations/polyscale.mdxnew file mode 100644index 00000000000..e5b9be23473--- /dev/null+++ b/apps/reference/docs/guides/integrations/polyscale.mdx@@ -0,0 +1,63 @@+---+id: polyscale+title: 'PolyScale'+description: 'The easiest way to get low-latency reads from your Supabase database for multi-region applications is by using PolyScale, a code-free global caching service.'+---++[PolyScale](https://polyscale.ai) is an intelligent, serverless caching engine which allows low-latency reads from your database globally, no coding required. Supabase can be connected to PolyScale in minutes, providing you fast access to your Supabase data around the globe.++This guide explains how to connect Supabase to a PolyScale cache.++The video below illustrates how to get connected. Or you can read the steps below.++<div class="video-container">+ <iframe+ src="https://www.youtube.com/embed/ZQ8TG-A-CIw?rel=0"+ frameborder="0"+ allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0"+ allowfullscreen+ width="100%"+ height="400px"+ ></iframe>+</div>++## Step 0: Create a PolyScale account++If you do not already have a PolyScale account, you can create an account [here](https://app.polyscale.ai/signup). PolyScale offers a free tier and no credit card is required.++## Step 1: Create your PolyScale Cache++### 1.1 Retrieve your Supabase Host++In your Supabase project, click on `Settings > Database` and scroll down to the `Connection info` section to copy your database `Host`.++++### 1.2 Configure your PolyScale Cache++- In your PolyScale account, click on the **New Cache** button+- Give the cache a **Name**+- Select **PostgreSQL** for the **Type**+- Enter the **Host** from Step 1.1 above+- Enter `5432` for the **Port**+- Click **Create**++++Your cache is now created. PolyScale automatically checks to see that your database is accessible from all our global PoPs.++## Step 2: Connect to your PolyScale Cache++Using your PolyScale cache is simple -- instead of connecting to your Supabase database directly, you'll replace your orignal connection string with the PolyScale connection string in your application.++For example, if your original connection string was: `postgres://postgres:[email protected]:5432`++Your PolyScale connection string would be: `postgres://postgres:[email protected]:5432?application_name=a645cb93-fa53-46b2-9d6c-227e357e5bfb`++You can read more about connecting to PolyScale [here](https://docs.polyscale.ai/connecting-to-polyscale#postgresql)++That's it.++## All done!++You can read more about PolyScale [here](https://www.polyscale.ai/) or check out our [documentation](https://docs.polyscale.ai/).\ No newline at end of filediff --git a/apps/reference/nav/_referenceSidebars.js b/apps/reference/nav/_referenceSidebars.jsindex f66802b35b4..bab8deb5fea 100644--- a/apps/reference/nav/_referenceSidebars.js+++ b/apps/reference/nav/_referenceSidebars.js@@ -220,6 +220,7 @@ const sidebars = {'guides/integrations/draftbit','guides/integrations/pgmustard','guides/integrations/plasmic',+ 'guides/integrations/polyscale','guides/integrations/prisma','guides/integrations/sequin','guides/integrations/snaplet',diff --git a/apps/reference/static/img/guides/integrations/polyscale/create-cache-supabase.png b/apps/reference/static/img/guides/integrations/polyscale/create-cache-supabase.pngnew file mode 100644index 00000000000..3a1a144ab28Binary files /dev/null and b/apps/reference/static/img/guides/integrations/polyscale/create-cache-supabase.png differdiff --git a/apps/reference/static/img/guides/integrations/polyscale/supabase-host.png b/apps/reference/static/img/guides/integrations/polyscale/supabase-host.pngnew file mode 100644index 00000000000..2202234d716Binary files /dev/null and b/apps/reference/static/img/guides/integrations/polyscale/supabase-host.png differ