What problem does it solve?
This Skill helps users make informed decisions about database selection, schema design, indexing, ORM choices, and query optimization, preventing common anti-patterns and ensuring efficient, scalable database solutions.
Core Features & Use Cases
- Database & ORM Selection: Guides users through choosing the right database (PostgreSQL, Neon, Turso, SQLite) and ORM (Drizzle, Prisma, Kysely) based on project requirements.
- Schema Design Best Practices: Covers normalization, primary key strategies, timestamp conventions, and relationship types.
- Performance Tuning: Provides guidance on indexing strategies and query optimization techniques like analyzing
EXPLAIN ANALYZE and solving N+1 problems.
- Safe Migrations: Outlines a strategy for zero-downtime schema changes, especially relevant for serverless databases.
- Use Case: A developer needs to choose between PostgreSQL and Turso for a new edge application and wants to ensure their schema is well-designed and indexed for performance.
Quick Start
Use the database-design skill to help me choose a database for an edge deployment.