Skill

SkillsData & Databases › Relational / SQL

postgresql-table-design

Complete database design & optimization super-skill: PostgreSQL schema design (data types, constraints, RLS, indexing), query optimization & performance tuning (indexing, N+1, monitoring), and design principles & anti-patterns. Curated merge of 3 skills.

Premiumrisk: medium
databasepostgresqlschema-designindexingquery-optimizationperformancesqlebizapple-super-skill

Preview

— name: postgresql-table-design description: Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features — # PostgreSQL Table Design ## Core Rules – Define a **PRIMARY KEY** for reference tables (users, orders, etc.). Not always needed for time-series/event/log data. When used, prefer `BIGINT GENERATED ALWAYS AS IDENTITY`; use `UUID` only when global uniqueness/opacity is needed. – **Normalize first (to 3NF)** to eliminate data redundancy and update anomalies; denormalize **only** for measured, high-ROI reads where join performance is proven problematic. Premature denorma …

This is a premium super-skill. The full, curated skill unlocks with membership.