supabase-postgres-best-practices

Supabase 出品的 Postgres 性能优化与最佳实践。在编写、评审或优化 Postgres 查询、表结构设计或数据库配置时使用。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "supabase-postgres-best-practices" with this command: npx skills add kunhai-88/skills/kunhai-88-skills-supabase-postgres-best-practices

Supabase Postgres 最佳实践

面向 Postgres 的性能优化指南,由 Supabase 维护。包含 8 大类规则,按影响程度排序,用于指导自动化查询优化与表结构设计。

何时使用

在以下场景参考本指南:

  • 编写 SQL 查询或设计表结构
  • 实现索引或查询优化
  • 排查数据库性能问题
  • 配置连接池或扩展
  • 利用 Postgres 特有功能做优化
  • 使用行级安全(RLS)

规则类别与优先级

优先级类别影响前缀
1查询性能关键query-
2连接管理关键conn-
3安全与 RLS关键security-
4表结构设计schema-
5并发与锁中高lock-
6数据访问模式data-
7监控与诊断低中monitor-
8高级特性advanced-

使用方式

阅读单条规则文件获取说明与 SQL 示例:

rules/query-missing-indexes.md
rules/query-partial-indexes.md
rules/_sections.md

每条规则包含:为何重要、错误 SQL 示例、正确 SQL 示例、可选的 EXPLAIN 输出或指标、补充说明与参考、以及适用时的 Supabase 说明。

完整展开版见 rules/ 目录下各 .md 规则文件。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

supabase-postgres-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

marketing-psychology

No summary provided by upstream source.

Repository SourceNeeds Review
General

marketing-ideas

No summary provided by upstream source.

Repository SourceNeeds Review
General

supabase-postgres-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review