logoalt Hacker News

matwoodtoday at 9:13 AM1 replyview on HN

> A highly cited reason for using mongo is that people would rather not figure out a schema.

Which is such a cop out, because there is always a schema. The only questions are whether it is designed, documented, and where it's implemented. Mongo requires some very explicit schema decisions, otherwise performance will quickly degrade.


Replies

xnorswaptoday at 11:05 AM

Fowler describes it as Implicit vs Explicit schema, which feels right.

Kleppmann chooses "schema-on-read" vs "schema-on-write" for the same concept, which I find harder to grasp mentally, but describes when schema validation need occur.