What problem does it solve?
This Skill provides guidance and best practices for designing and optimizing database schemas, helping users make informed decisions about database selection, ORM usage, and query performance.
Core Features & Use Cases
- Database Selection: Offers a decision tree and comparison for choosing between PostgreSQL, Neon, Turso, and SQLite based on project requirements.
- ORM Selection: Guides users in selecting the right Object-Relational Mapper (ORM) like Drizzle or Prisma.
- Schema Design: Covers normalization, primary key strategies, timestamp conventions, and relationship types.
- Optimization: Addresses query optimization techniques, including the N+1 problem and using
EXPLAIN ANALYZE.
- Migrations: Outlines safe migration strategies for zero-downtime deployments.
- Use Case: A developer is starting a new project and needs to decide whether to use PostgreSQL with Prisma or a serverless option like Neon with Drizzle. This Skill helps them evaluate the trade-offs.
Quick Start
Guide me through selecting the best database for a new web application that needs to scale globally.