What optimizations are you making here when at the end of the day performance is dictated by the schema, the query planner and the network?
How can I possibly condense 24 years of deep knowledge in one comment for you?
The tldr is if you're ever concatenating strings in order to build a query you're just doing what the entire job of orm is but rolling your own and chances are you'll end up with a bunch of bugs in how you handle well.... Everything.
I read it as "I've optimized the orm to be minimal overhead over raw sql a lot of the time".