Supabase Performance Optimizer
Optimize Supabase database performance with intelligent analysis and recommendations
$ npx claude-code-templates@latest --command="database/supabase-performance-optimizer" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Supabase Performance Optimizer
Optimize Supabase database performance with intelligent analysis and automated improvements: $ARGUMENTS
Current Performance Context
- Supabase metrics: Database performance data via MCP integration
- Query patterns: !
find . -name ".sql" -o -name ".ts" -o -name "*.js" | xargs grep -l "from\|select\|insert\|update" 2>/dev/null | head -5application queries - Schema analysis: Current table structures and relationship complexity
- Performance logs: Recent query execution times and resource usage patterns
Task
Execute comprehensive performance optimization with intelligent analysis and automated improvements:
Optimization Focus: Use $ARGUMENTS to focus on query optimization, index management, storage optimization, RLS policies, or database functions Performance Optimization Framework:- Performance Analysis - Analyze query execution times, identify slow operations, assess resource utilization, evaluate bottlenecks
- Index Optimization - Analyze index usage, recommend new indexes, identify redundant indexes, optimize index strategies
- Query Optimization - Review application queries, suggest query improvements, implement query caching, optimize join operations
- Storage Optimization - Analyze storage patterns, recommend archival strategies, optimize data types, implement compression
- RLS Policy Review - Analyze Row Level Security policies, optimize policy performance, reduce policy complexity, improve security efficiency
- Function Optimization - Review database functions, optimize function performance, implement caching strategies, improve execution plans
Related Claude Code Commands
Supabase Schema Sync
Synchronize database schema with Supabase using MCP integration
Supabase Data Explorer
Explore and analyze Supabase database data with intelligent querying and visualization
Supabase Migration Assistant
Generate and manage Supabase database migrations with automated testing and validation
Supabase Type Generator
Generate TypeScript types from Supabase schema with automatic synchronization and validation
Supabase Security Audit
Conduct comprehensive Supabase security audit with RLS analysis and vulnerability assessment
Supabase Backup Manager
Manage Supabase database backups with automated scheduling and recovery procedures
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.