rls-policy-optimizer

Community

Optimize RLS with select auth.uid() pattern

Authorsanchezx1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Optimiza pol铆ticas RLS de Supabase usando la construcci贸n (select auth.uid()) para evitar reevaluaciones por fila y mejorar el performance.

Core Features & Use Cases

  • Performance improvement: reduce llamadas a auth.uid() por fila.
  • Tables afectadas: leads, cotizaciones, items_cotizacion, email_logs.

Quick Start

  1. Usar MCP Supabase para obtener las policies actuales, 2) crear migraci贸n para sustituir USING auth.uid() por USING ((select auth.uid()) = user_id), 3) aplicar migraci贸n y verificar con el advisor.

Dependency Matrix

Required Modules

None required

Components

Standard package

馃捇 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rls-policy-optimizer
Download link: https://github.com/sanchezx1/v0-fullcolor-cotizador/archive/main.zip#rls-policy-optimizer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.