3 ms·
>Not everything needs a schema. Everything does. Data without schema are just noise. The real question is whether you'll enforce it at the DB level (and suffe
by coldtea 10y ago
>Not everything needs a schema.
Everything does. Data without schema are just noise.
The real question is whether you'll enforce it at the DB level (and suffer from inflexibility) or enforce it at the code level (that, obviously, should know what field is what, and which fields are available, e.g. enforcing a schema at runtime) and get potentially corrupted data, management overhead, etc.
- danso 10y ago> Everything does. Data without schema are just noise. Love that concise adage. Will probably adopt it when explaining databases to novices.
- deleted 10y ago[deleted]
- DiabloD3 10y agoTo clarify, I meant exactly that: enforced at the DB level, or enforced in the code base.
- int_19h 10y agoThere are times when you don't care about the schema, though. E.g. when the data is mostly just pass-through, and you need to get it from here to there. Sometimes you need just a tiny bit of schema to know where "there" is (when that's encoded in the data), but you don't really care about the rest at all.