All comparisons
/// Compare
Postgres vs MongoDB — which database in 2026?
Postgres has caught up on document workloads. MongoDB still wins on horizontal scale-out and developer ergonomics for some teams. We default to Postgres.
| Dimension | Postgres | MongoDB |
|---|---|---|
| Document storage | JSONB (excellent) | Native |
| Relational features | Best in class | Limited |
| Horizontal scale | With Citus / partitioning | Built-in |
| Vector search | pgvector | Atlas Search |
| Operational tooling | Mature | Mature |
| Best for | Almost everything | Doc-heavy + horizontal scale |
/// Origami's take
Default to Postgres. Reach for MongoDB only when the workload is genuinely document-shaped and the scale curve is sharp.