AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
Backend & APIsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Supabase query performance

Created by CodeCraft LLC

Diagnose and fix Postgres performance in Supabase projects

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.8.2 · updated 2026-12-01Report copyright infringement

Description

Diagnose and fix Postgres performance in Supabase projects — finding slow queries (Query Performance report, pg_stat_statements, Performance Advisor, index_advisor), reading EXPLAIN (ANALYZE, BUFFERS) plans, choosing indexes (B-tree composite order, partial, covering, GIN for JSONB/arrays/full-text, trigram for ILIKE, BRIN for append-only time series), making RLS policies fast, connection management (Supavisor transaction vs session pooling, prepared statements, serverless clients), pagination and counts in supabase-js/PostgREST, N+1 and embedded selects, batch writes and upserts, lock contention and short transactions, statement timeouts, vacuum/analyze and bloat, Realtime scale, and partitioning. Use whenever a Supabase/Postgres query or page is slow, the database CPU or connections are high, the user sees timeouts or "too many connections", reviews query/index changes, or prepares for scale.

#backend#supabase#query#performance

Included with all-access

$9.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.8.2Dec 1, 2026Latest

Changed

  • README **Sources**: links now point at the publisher's openly licensed GitHub copy of the same docs (CC BY 4.0, Apache 2.0, MIT or the W3C Software and Document License), so the skill rests on the open license rather than the website's terms of use.
v1.8.1Dec 1, 2026

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.8.0Nov 30, 2026

Added

  • supabase inspect db targets the local stack by default on Supabase CLI 3; add --remote.

Changed

  • Deep-dive references use the on-demand format with open/skip triggers and list index-cookbook.md and the review checklist; long references open with a contents line; README lists postgres-indexing.md.
v1.7.0Nov 22, 2026

Added

  • Measure first: run the performance advisors and diagnostics through the Supabase MCP server when connected, or offer it (read-only, scoped); references/diagnostics-sql.md listed in the deep-dive references; pitfall for diagnosing through a writable production connection.

Changed

  • Connections: the pooling guidance said the same rules twice; one list by host now.
v1.6.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.5.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.4.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
v1.3.2Nov 1, 2026

Changed

  • README: "Pairs with" now lists app-search.
v1.3.1Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.3.0Oct 18, 2026

Added

  • references/explain-analyze-guide.md now covers Heap Fetches on index-only scans, lossy bitmap heap scans, extended statistics (CREATE STATISTICS) for correlated columns, per-column statistics targets, and capturing plans of slow queries with auto_explain.

Fixed

  • The EXPLAIN guide is now listed in SKILL.md and the README, so agents know when to read it.
v1.2.0Oct 16, 2026

Added

  • references/postgres-indexing.md: a general PostgreSQL indexing guide (composite order, covering, partial, expression, GIN/trigram, maintenance) - merged from the former sql-indexing skill.
v1.1.0Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Expanded connection guidance: direct (IPv6), shared pooler session vs transaction mode (IPv4), dedicated pooler on paid plans, pool size 1 and prepared statements off for serverless.
v1.0.1Oct 3, 2026

Changed

  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.