4 ms·
> a database that can't properly store a number as a number or even guarantee that it's a number at all. What do you mean?
by metheus 9y ago
> a database that can't properly store a number as a number or even guarantee that it's a number at all.
What do you mean?
- koolba 9y agoI meant it doesn't have a decimal type but looks like as v3.4 it does: https://docs.mongodb.com/manual/tutorial/model-monetary-data/#numeric-decimal https://docs.mongodb.com/manual/tutorial/model-monetary-data...
- metheus 9y agoOk, but even prior to 3.4, in what sense did you mean it couldn't guarantee something was a number at all?
- koolba 9y agoNot having an enforced scheme means that there is no guarantee a given key exists or that if it does exist, the data type matches what you'd expect it to be. One errant piece of code could insert a bad record that could break some other of piece of code.
- metheus 9y agoSince version 3.2 you've been able to enforce data types with validation.