CtrlK
BlogDocsLog inGet started
Tessl Logo

jbvc/database-design

Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.

62

Quality

62%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

database-selection.md

Database Selection (2025)

Choose database based on context, not default.

Decision Tree

What are your requirements?
│
├── Full relational features needed
│   ├── Self-hosted → PostgreSQL
│   └── Serverless → Neon, Supabase
│
├── Edge deployment / Ultra-low latency
│   └── Turso (edge SQLite)
│
├── AI / Vector search
│   └── PostgreSQL + pgvector
│
├── Simple / Embedded / Local
│   └── SQLite
│
└── Global distribution
    └── PlanetScale, CockroachDB, Turso

Comparison

DatabaseBest ForTrade-offs
PostgreSQLFull features, complex queriesNeeds hosting
NeonServerless PG, branchingPG complexity
TursoEdge, low latencySQLite limitations
SQLiteSimple, embedded, localSingle-writer
PlanetScaleMySQL, global scaleNo foreign keys

Questions to Ask

  1. What's the deployment environment?
  2. How complex are the queries?
  3. Is edge/serverless important?
  4. Vector search needed?
  5. Global distribution required?

database-selection.md

indexing.md

migrations.md

optimization.md

orm-selection.md

schema-design.md

SKILL.md

tile.json