What problem does it solve?
This Skill guides users through the complex decisions involved in database and ORM selection, schema design, indexing strategies, and query optimization, preventing common anti-patterns and promoting efficient data management.
Core Features & Use Cases
- Database Selection: Provides decision trees and comparisons for choosing between PostgreSQL, Neon, Turso, SQLite, and others based on project requirements.
- ORM Selection: Offers guidance on selecting the right ORM (Drizzle, Prisma, Kysely) based on deployment needs and developer experience.
- Schema Design: Covers normalization, primary key selection, timestamp strategies, and relationship types.
- Optimization: Details N+1 problem solutions and the use of
EXPLAIN ANALYZE.
- Migrations: Outlines safe migration strategies for zero-downtime deployments.
- Use Case: A developer needs to choose a database for a new web application. They can use this Skill to evaluate options like PostgreSQL for full features or Turso for edge deployment, and then design an efficient schema with appropriate indexes.
Quick Start
Use the database-design skill to help choose between PostgreSQL and SQLite for a new project.