Catalogue / database-selection
database-selection
MITSignedDatabase selection: PostgreSQL as default, Redis for ephemeral, NoSQL comparison, specialized databases, polyglot persistence. Use when choosing databases.--- name: database-selection description: | Database selection: PostgreSQL as default, Redis for ephemeral, NoSQL comparison, specialized databases, polyglot persistence. Use when choosing databases. allowed-tools: Read, Grep, Glob ---
Database Selection
When to use
- Choosing primary database for a new service
- Adding a specialized database (cache, search, analytics, time-series)
- Evaluating polyglot persistence or multi-database architecture
Core principles
- PostgreSQL is the default — handles 10k TPS, JSONB, full-text search, extensions
- Add databases for specific access patterns — not because it's trendy
- Every additional database doubles operational complexity — worth it only for clear ROI
- Consistency model is a product decision — strong vs eventual affects user experience
- Benchmark with YOUR data — vendor benchmarks are meaningless for your workload
References available
references/relational-comparison.md— Postgres vs MySQL vs SQLite vs CockroachDBreferences/nosql-comparison.md— MongoDB vs DynamoDB vs Cassandra vs Redis use casesreferences/specialized-databases.md— TimescaleDB, Neo4j, Pinecone, pgvector, Elasticsearchreferences/multi-database-patterns.md— polyglot persistence, CQRS stores, data sync
Scripts available
scripts/analyze-data-model.sh— reads schema/migration files to suggest database fit
Assets available
assets/database-decision-matrix.md— fillable template: requirements → recommendation
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 1.5 kB | b0b651e6b005 |
| SKILVAULT_SOURCE.json | 1.9 kB | c208fa8d695d |
| THIRD_PARTY_NOTICES.md | 2.1 kB | c2e125b5f806 |
| assets/database-decision-matrix.md | 3.1 kB | f832d4bb306d |
| references/multi-database-patterns.md | 5.7 kB | c38337ee29b0 |
| references/nosql-comparison.md | 5.0 kB | 45d9722d7342 |
| references/relational-comparison.md | 4.2 kB | d833ae5d6f4f |
| references/specialized-databases.md | 5.5 kB | fea8d133bee8 |
| scripts/analyze-data-model.sh | 6.0 kB | 437bb7294e59 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | c5b74102c7fd | 29 Nov 2026 |
Locking a skill to one version needs Pro.