databases

Design and optimize database schemas for OLTP and OLAP workloads.

2|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/NammDev/Goads-Krea --skill databases-nammdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databases
Source: https://github.com/NammDev/Goads-Krea/tree/main/.claude/skills/databases
Command: npx skills add https://github.com/NammDev/Goads-Krea --skill databases-nammdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymongo, psycopg2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Designing scalable, maintainable database schemas for transactional (OLTP) and analytical (OLAP) workloads across SQL and NoSQL platforms, balancing normalization, performance, and future growth.

Core Features & Use Cases

  • OLTP/OLAP design guidance: modeling headers, line items, dimensions, fact tables, and reference data for PostgreSQL, MongoDB, and other stacks.
  • Indexing and optimization: best practices for foreign keys, composite indexes, and partitioning to support common queries and reports.
  • Migration and maintenance patterns: schema evolution, backups, replication, and data integrity checks.

Quick Start

Provide a complete database design outline for an e-commerce platform including tables, relationships, indexing strategy, and migration considerations.

Frequently Asked Questions about databases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a database schema for an e-commerce platform with PostgreSQL and MongoDB?

Database schema design for an e-commerce platform involves modeling headers, line items, dimensions, and fact tables across PostgreSQL and MongoDB, balancing normalization and performance. You provide a complete design outline including tables, relationships, indexing strategy, and migration considerations.

What's the best way to optimize indexing strategies for OLTP and OLAP workloads?

Optimizing indexing strategies for OLTP and OLAP workloads requires applying best practices for foreign keys, composite indexes, and partitioning to support common queries and reports. This balances transactional speed and analytical reporting performance for scalable data architectures.

How do I handle database schema migrations and maintenance for scalable apps?

Database schema migrations and maintenance for scalable apps are handled through schema evolution patterns, backups, replication, and data integrity checks. These patterns ensure robust data architectures can adapt to future growth without downtime.

When do I need different database models for SQL vs NoSQL workloads?

Different SQL and NoSQL database models are needed when balancing normalization, performance, and future growth across transactional and analytical workloads. PostgreSQL handles structured relational data while MongoDB supports flexible document models.

Does this database design guidance work with both PostgreSQL and MongoDB?

Yes, this database design guidance works with both PostgreSQL and MongoDB, supporting schema design, indexing, migrations, backups, and replication across SQL and NoSQL models. It leverages pymongo and psycopg2 dependencies for implementation.

Why does database design require balancing normalization and performance?

Database design requires balancing normalization and performance because highly normalized schemas reduce data redundancy but can slow complex queries, while denormalization improves read performance but risks data integrity. Proper indexing and partitioning strategies optimize both.