> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase

> Database performance monitoring and optimization.

<Frame>
  <img src="https://mintcdn.com/test-8862363a/ZNDzs01gTiL6UMVz/images/integrations/supabase.png?fit=max&auto=format&n=ZNDzs01gTiL6UMVz&q=85&s=098678b83525ac592ec0561cf894b9d3" alt="Supabase" width="2562" height="1441" data-path="images/integrations/supabase.png" />
</Frame>

## Features

* Monitor slow queries and suggest optimizations
* Detect missing and unused indexes
* Open PRs with migration scripts

## Installation

<Steps>
  <Step title="Install">
    Go to [Integrations](https://app.tembo.io/integrations) and click **Install** next to Supabase.
  </Step>

  <Step title="Authorize">
    Authorize Tembo to access your Supabase account.
  </Step>

  <Step title="Activate projects">
    Select which Supabase projects to monitor.
  </Step>

  <Step title="Map repository">
    Map projects to the repository where migrations are stored.
  </Step>
</Steps>

## Usage

Tembo monitors your Supabase database using `pg_stat_statements`. When it finds optimization opportunities, it opens PRs with migration scripts and performance metrics.

## Advanced

<AccordionGroup>
  <Accordion title="Projects not appearing">
    Wait 2-5 minutes for initial sync. Verify you authorized access and projects are active (not paused). Try the sync button.
  </Accordion>

  <Accordion title="No query statistics">
    Verify `pg_stat_statements` is active. Generate some query traffic and wait 24-48 hours for new projects to collect data.
  </Accordion>
</AccordionGroup>
