2 ms·
> 2. Don't use high level ORMs. Stay (reasonably) close to SQL. And yes, it should be SQL. In my experience using any ORM will bite you sooner or later and you
by nottorp 5y ago
> 2. Don't use high level ORMs. Stay (reasonably) close to SQL. And yes, it should be SQL.
In my experience using any ORM will bite you sooner or later and you'll end up bypassing it and writing SQL manually. Last case we had were a couple queries that went from double digit seconds to instant as we rewrote them natively.
- Nextgrid 5y agoBoth have their place. I agree that for complex queries, nothing beats raw SQL. However, for simple, straightforward queries fetching data from a single table without JOINs/etc, the ORM is generally easier.