4 ms·
He never said anything about SQL being hard. In fact, I think MongoQuery is much more obtuse than SQL. That being said, when you don't know what your schema is
by scarface74 9y ago
He never said anything about SQL being hard. In fact, I think MongoQuery is much more obtuse than SQL.
That being said, when you don't know what your schema is going to look like, why not use a Nosql solution - either a pure nosql solution or the JSON support built into modern databases? If you write your code correctly and have one module retrieve for one domaim, you should be able to isolate changes.
But, if I do have to use Sql, I agree, put all of your changes in sql files numbered and have a "database version" and find/create tooling that can automate running the Sql scripts and run it as part of your CI/CD.
- jasonkester 9y agowhen you don't know what your schema is going to look like, why not use a Nosql solution Because one day soon, you will know what your schema is going to look like. And the next 10 years of your business will be a lot more pleasant had you optimized for them rather than the first week of greenfield development.
- scarface74 9y agoAnd there are all sorts of well known solutions that let you create separate solutions for OLTP and OLAP. You don't have to have one type of data store to rule them all.