@borkdude: how about – represent part of the query separately for legibility, and then compose them for performance? Best of both worlds? :simple_smile:
@srihari: compose as in with honeysql or something?
@srihari: I'm now using yesql, plain sql
@borkdude: I don’t know if it’s possible in your case, but I was just thinking that parts of the sql – subqueries, WITH queries and such could be separately represented for readability and then put together before sending it to the DB.
@srihari: I'm already writing subqueries, but maybe I should use comments in SQL 😉
:simple_smile: