I am a little bit reluctant when it comes to mixing SQL queries with my code ... I tend to not like it aesthetically. I was wondering whether there's a better way of storing them, without having to mix them with the code. What I've found until now:
- Use an ORM and you don't have to worry about storing full SQL strings - this is not an option when you're trying to achieve better speed ... ORM suck when it comes to this, so you're better using SQL
- Place your queries in a totally separate file that stores only queries, from which you can import them for later use