技能 编程开发 Supabase性能优化

Supabase性能优化

v20260311
supabase-performance-tuning
通过测量延迟、添加缓存与批量请求、配置连接池等方式,提升 Supabase API 的响应速度和吞吐能力,适用于集成慢接口或高并发场景。
获取技能
428 次下载
概览

Supabase Performance Tuning

Prerequisites

  • Supabase SDK installed
  • Understanding of async patterns
  • Redis or in-memory cache available (optional)
  • Performance monitoring in place

Instructions

Step 1: Establish Baseline

Measure current latency for critical Supabase operations.

Step 2: Implement Caching

Add response caching for frequently accessed data.

Step 3: Enable Batching

Use DataLoader or similar for automatic request batching.

Step 4: Optimize Connections

Configure connection pooling with keep-alive.

Output

  • Reduced API latency
  • Caching layer implemented
  • Request batching enabled
  • Connection pooling configured

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Optimize Supabase API performance with caching, batching, and connection pooling.

信息
Category 编程开发
Name supabase-performance-tuning
版本 v20260311
大小 2.29KB
更新时间 2026-03-12
语言