News for hackers. Stuff that matters.
Re:MongoDB Wire Protocol Specification License by gbuk2013 on Wednesday July 21, 2021 @02:27PM (#27910102)
That’s the theory, in practice “no schema” in my recent painful experience translates to “move the schema into the apps” which really sucks when you have a bunch of interdependent services owned by different teams.

And you still need to do joins to enrich data from different collections.

I want Postgres back. :(

Re:MongoDB Wire Protocol Specification License by laichzeit0 on Wednesday July 21, 2021 @03:00PM (#27910541)
It’s exactly that. Shifting the problem from schema-on-write to schema-on-read. It’s like dynamic vs statically typed. Personally, I don’t like it at all, none of your problems have magically disappeared, you just shifted it to runtime (or the application layer, as you say).
Re:MongoDB Wire Protocol Specification License by vel0city on Wednesday July 21, 2021 @04:05PM (#27911401)
In many document databases these days you can have required fields and types enforced by the database to ensure all documents in the collection have at least a certain schema.

https://docs.mongodb.com/manual/core/schema-validation/#rest...

Re:MongoDB Wire Protocol Specification License by flowerlad on Wednesday July 21, 2021 @02:37PM (#27910218)
> really sucks when you have a bunch of interdependent services owned by different teams.

That's true. The strictness of SQL lets you use SQL as the integration point. Without it you'd have to write a service on top as the integration layer.

Re:MongoDB Wire Protocol Specification License by jjav on Wednesday July 21, 2021 @06:43PM (#27913097)
> “move the schema into the apps”

Exactly. There is always a schema, there has to be. It's just a question of whether it can easily be seen or if it is buried in a thousand places in the code.