MongoDB: How to Use the JSON Schema Validator
1–10 of 17 posts
Re: MongoDB: How to Use the JSON Schema Validator
#2Re: MongoDB: How to Use the JSON Schema Validator
#3I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
Re: MongoDB: How to Use the JSON Schema Validator
#4I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
Re: MongoDB: How to Use the JSON Schema Validator
#5I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
> Your data has a schema, whether you're explicit about it or not,
Partially true, but not accurate. Often the items in a data set have similar schemas, but not exact the same one.
Re: MongoDB: How to Use the JSON Schema Validator
#6I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
Don't get me wrong, I'd probably pick a traditional RDBMS over MongoDB for most projects, but the object-relational impedance mismatch is a real problem.
Re: MongoDB: How to Use the JSON Schema Validator
#7I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
you should interpret "schemaless" as "free/non-fixed schema". > Your data has a schema, whether you're explicit about it or not, Partially true, but not accurate. Often the items in a data set have similar schemas, but not exact the same one.
Data has schema by definition otherwise you wouldn't be able to reason about it.
Re: MongoDB: How to Use the JSON Schema Validator
#8I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
True, but all those migration scripts/patches/table locks add complexity and inconvenience (less agile).
I don't think so. You could say exactly the same thing about maintaining tests for your code. Explicit schemas and constraints (and the effort that goes along with maintaining them) are very much like having tests for your data. They both help ensure that your code actually works when it needs to.
Re: MongoDB: How to Use the JSON Schema Validator
#9I've never really gotten the appeal of "schemaless" databases. Your data has a schema, whether you're explicit about it or not, but being explicit allows you (and forces you) to reason about it at the right time at the right level of abstraction.
That is a really big schema choice imposed on developers and the root cause of for instance why it took years to be able to create good indexes on inner fields, and they still can't do it efficiently.
The same can be said for simple key value stores.
True schemaless databases are much rarer and provide developers orders of magnitude increases in terms of flexibility, expression and speed.
Unfortunately these kinds of databases are not readily available to a broad audience. It's also the case that for the majority of jobs and developers SQL based stores are still a very good choice unless you need to deal with huge amounts of data from disparate sources without bringing down the system.
Re: MongoDB: How to Use the JSON Schema Validator
#10Earlier quoted context omitted.
you should interpret "schemaless" as "free/non-fixed schema". > Your data has a schema, whether you're explicit about it or not, Partially true, but not accurate. Often the items in a data set have similar schemas, but not exact the same one.
good luck writing code for that kind of dataset then. Data has schema by definition otherwise you wouldn't be able to reason about it.