首页/ AI 技能 / @skilllib/skill-2014279429994786817
Skill站外收录 @skilllib/skill-2014279429994786817

supabase-performance-tuning

针对 Supabase API 响应缓慢问题,提供端到端性能优化能力,涵盖请求延迟测量、高频数据响应缓存、批量请求合并处理以及连接复用与池化配置,显著提升并发吞吐与响应速度。

0.0 (0) 179 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# 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 `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Supabase Performance Guide](https://supabase.com/docs/performance) - [DataLoader Documentation](https://github.com/graphql/dataloader) - [LRU Cache Documentation](https://github.com/isaacs/node-lru-cache)

评论 0

还没有评论,来抢沙发。