{"enrichment":{"faq":[{"a":"Database Design helps you structure schemas through normalization principles, index strategies, and denormalization trade-offs. Start by identifying entities and relationships, apply normalization forms (1NF through 3NF) to eliminate redundancy, then selectively denormalize where query patterns justify it. Use composite indexes for common filter and join operations, and plan migrations carefully to avoid downtime.","q":"How do I design a database schema that performs well?"},{"a":"Database Design covers N+1 optimization by teaching you to batch queries, use eager loading in your ORM, or restructure joins. The core issue is fetching a parent record then looping to fetch children individually. Solutions include JOIN operations, ORM relationship loading (like includes/joins in Rails), or query result caching with Redis for frequently accessed data.","q":"What's the best way to fix an N+1 query problem?"},{"a":"Database Design guides index creation by analyzing your query patterns first. Create indexes on columns used in WHERE, JOIN, and ORDER BY clauses. Use composite indexes when multiple columns filter together. Monitor with EXPLAIN ANALYZE to confirm indexes are used. Avoid over-indexing\u2014each index slows writes. Balance read performance against write costs based on your workload.","q":"How should I approach database indexing strategy?"},{"a":"Database Design teaches safe migration patterns: add new columns as nullable, deploy code reading both old and new columns, backfill data gradually, then remove old columns in a later deployment. For schema changes, use feature flags and blue-green deployments. Test migrations on production-scale data first. Connection pooling configuration ensures requests don't timeout during long operations.","q":"What are zero downtime database migration patterns?"},{"a":"Database Design explains that normalization (1NF\u20133NF) eliminates redundancy and maintains consistency, ideal for transactional systems. Denormalize when read performance is critical and updates are infrequent\u2014store computed aggregates or duplicate data strategically. Analyze query patterns: if you always join the same tables, denormalization may be justified. Use caching (Redis) as an alternative before denormalizing.","q":"When should I denormalize vs. normalize my database?"},{"a":"Database Design covers ORM best practices including connection pooling configuration to reuse database connections, eager loading to prevent N+1 queries, and batch operations for bulk inserts. Use parameterized queries to prevent SQL injection. Understand your ORM's lazy vs. eager loading behavior. Monitor connection pool exhaustion and query counts in production to catch performance regressions early.","q":"What ORM best practices should I follow?"}],"shadow_tags":["schema-normalization","query-performance","index-strategy","data-integrity","migration-safety","orm-optimization","nosql-patterns","connection-management","cache-patterns","denormalization-tradeoffs"],"summary_rewrite":"Database Design guides you through schema normalization, indexing strategies, and query optimization for both SQL and NoSQL systems. It covers normalization forms, denormalization trade-offs, index types, and migration patterns to help you build performant, maintainable databases. Use it when designing tables, fixing performance issues, or planning data migrations."},"files":[{"bytes":10720,"path":"skills/database-design/SKILL.md","sha256":"256654449e0c4d5e7240cd01cc33f0110443f0c212e56db76af7332ee8ab736c","url":"https://skillfed.io/files/CloudAI-X/claude-workflow-v2/database-design/c8354737/SKILL.md"}],"id":"CloudAI-X/claude-workflow-v2/database-design","links":{"html":"https://skillfed.io/CloudAI-X/claude-workflow-v2/database-design","md":"https://skillfed.io/CloudAI-X/claude-workflow-v2/database-design.md","repo":"https://github.com/CloudAI-X/claude-workflow-v2"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":187,"language":"Python","last_updated":"2026-07-21","license":"MIT","name":"database-design","publisher":"CloudAI-X","stars":1386},"relations":{"categories":["database-engineering","backend-development","data-modeling"],"similar":[{"id":"curiositech/some_claude_skills/database-design-patterns"},{"id":"softaworks/agent-toolkit/database-schema-designer"},{"id":"miles990/claude-software-skills/data-design"},{"id":"Pixel-Process-UG/superkit-agents/database-schema-design"},{"id":"martinholovsky/claude-skills-generator/database-design"},{"id":"DanielPodolsky/ownyourcode/database"},{"id":"personamanagmentlayer/pcl/sql-expert"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/sql-optimization-patterns"},{"id":"manutej/luxor-claude-marketplace/database-management-patterns"},{"id":"MoizIbnYousaf/Ai-Agent-Skills/database-design"}]},"slug":{"owner":"CloudAI-X","repo":"claude-workflow-v2","skill":"database-design"},"version":"c8354737"}
