Hacker News new | past | comments | ask | show | jobs | submit login

A few notes:

- All the concerns listed in this article are addressed by ORMs.

- SQLite supports CTE[1] (subqueries).

- It's safer to use the exact same setup in development and production, but it's slower for applications with many tests. It's a trade-off and that's all there is to say.

[1] http://stackoverflow.com/questions/21819183/how-to-use-ctes-...




ORMs are not a panacea, for most applications it makes sense to bypass the ORM for operations which translate well to SQL but become convoluted or slow when expressed using the ORM's API. ORMs can't hide all of the differences between database implementations anyway, not without hiding some of the functionality that you actually want. It's unfortunate, but unavoidable.


ORMs are written by people and sometime have bugs. Also, they don't always return the same result for all the database managers.

Both this facts can bite you in the ass if you are not careful. It's great to run development tests on SQLite, but your CI environment, staging or whatever you have before you push your changes to production should try to mimic production as much as possible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: