News for hackers. Stuff that matters.
Re:How I Reduced My DB Server Load by 80% by pmontra on Monday October 09, 2017 @04:18PM (#15437119)
I've been thinking about writing SQL queries again recently because I'm using too many ORMs and at least one of them is unnecessarily complicated.

Writing queries is easy. Validating data is not too difficult. Building objects/whatever from the resultsets is not so easy anymore, especially with joins.

By the way, the mistake this post is about is a classic with Rails. You have to use a unique index in the db, not making queries. You want to protect your data anyway, regardless of which application you start building your db for. Others will follow, possibly in different languages.

There are no comments on this comment yet.