it there a way, by any chance, to kind of "compile" honeysql statements so that I don't need to call format
every time I build the query? kind of like crystallizing the static parts?
That wouldn't work in the general case with parameters that could be nil
I don't think? (since it would generate different SQL)
uhm...right
I might be able to memoize somewhere maybe
or I am just overengineering 🙂
If you know you'll always get the same SQL regardless of parameter values, you could format
it once with dummy values and then just use the first
value as a SQL string in actual queries.
But, yeah, I think you've overengineering.
If format
is your bottleneck, I'd be shocked 🙂
yeah agree