rigami.
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.

DimensionPostgresMongoDB
Document storageJSONB (excellent)Native
Relational featuresBest in classLimited
Horizontal scaleWith Citus / partitioningBuilt-in
Vector searchpgvectorAtlas Search
Operational toolingMatureMature
Best forAlmost everythingDoc-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.