Re:What MongoDB got right (2015)
by candiodari on Tuesday November 28, 2017 @08:09AM
(#15796865)
> Even when you use a schemaless db like MongoDB, you still have to manage your data (let's say the schema is implicit).
Yes, the "secret" to MongoDB not having to write data migrations is simple: you get to simply have them as technical debt for later.
What could go wrong ?
Well, that's easy too: an accounting system where each method has a switch with 10+ cases, each case having 30+ lines of code inside of it, depending on something like "record version" or worse, on implicit tests.
And what could be worse ? Well, having a switch with only 9 cases in one of those methods ...
Yes, the "secret" to MongoDB not having to write data migrations is simple: you get to simply have them as technical debt for later.
What could go wrong ?
Well, that's easy too: an accounting system where each method has a switch with 10+ cases, each case having 30+ lines of code inside of it, depending on something like "record version" or worse, on implicit tests.
And what could be worse ? Well, having a switch with only 9 cases in one of those methods ...