Yugabytedb Schema Design

Best practices for designing high-performance YugabyteDB schemas from scratch or optimizing existing ones. Covers hash vs range sharding decisions, avoiding write hotspots on sequential columns, partial indexes for nullable or skewed columns, low-cardinality index design, covering indexes, primary key selection, foreign key index requirements, and redundant index cleanup. Use this skill whenever the user asks how to design a YugabyteDB schema, choose a sharding strategy, avoid hotspots, optimize indexes, handle NULL-heavy columns, model a table for distributed SQL, or asks "how should I structure this in YugabyteDB". Trigger even when the user mentions "YugabyteDB indexes", "YSQL schema", "tablet hotspot", "sharding key", or asks why their YugabyteDB writes are slow or skewed.

srinivasa-vasu Updated

File contents

srinivasa-vasu/agent-skills/tree/main/yugabytedb-schema-design commit 14db1c096a

Frequently asked questions

npx skillmds@latest add srinivasa-vasu/yugabytedb-schema-design