database-management-patterns

Consolidate PostgreSQL and MongoDB design, indexing, transactions, replication, and sharding patterns.

61|15|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/manutej/luxor-claude-marketplace --skill database-management-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-management-patterns
Source: https://github.com/manutej/luxor-claude-marketplace/tree/main/plugins/luxor-database-pro/skills/database-management-patterns
Command: npx skills add https://github.com/manutej/luxor-claude-marketplace --skill database-management-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive patterns for SQL and NoSQL database design, indexing, transactions, replication, and performance.

Core Features & Use Cases

  • Schema Design: Normalization vs denormalization
  • Indexing: B-tree, GIN, text indexes
  • Transactions & Replication: ACID guarantees and replication
  • Sharding & Performance: Horizontal scaling and optimization
  • Cross-Database Patterns: Interoperability

Quick Start

Apply patterns to real-world scenarios like e-commerce data models.

Frequently Asked Questions about database-management-patterns

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

FAQPage Schema
How do I design a schema for PostgreSQL and MongoDB databases?

Schema design balances normalization for consistency in PostgreSQL against denormalization for performance in MongoDB. The patterns guide when to normalize relational data and when to embed documents, with trade-offs between query speed and storage efficiency.

What indexing strategies improve query performance in PostgreSQL and MongoDB?

Indexing strategies include B-tree indexes for range queries in PostgreSQL and GIN indexes for full-text search. MongoDB patterns cover similar optimization, with guidance on when each index type reduces latency in production workloads.

How do I handle transactions and replication across PostgreSQL and MongoDB?

Transactions enforce ACID guarantees in PostgreSQL and multi-document transactions in MongoDB. Replication patterns ensure data consistency and availability, with trade-offs between strong consistency and partition tolerance for distributed systems.

When should I use sharding to scale databases horizontally?

Sharding distributes data across multiple nodes when a single database reaches capacity limits. The patterns specify shard key selection, rebalancing constraints, and performance trade-offs between query complexity and write throughput in large-scale deployments.

Can I apply the same database patterns to both PostgreSQL and MongoDB?

Many patterns apply to both databases—schema normalization, indexing, and replication—but implementation differs. PostgreSQL enforces schemas at the database layer, while MongoDB allows flexible schemas, requiring distinct approaches to achieve production readiness.

What performance optimizations work for production-grade database systems?

Production optimization covers connection pooling, query execution planning, index tuning, and monitoring metrics. The patterns prescribe when to denormalize, cache, or shard, with constraints and examples for e-commerce and high-throughput applications.