In reply to andrewchambers (andrewchambers) a nice feature might be automatically precompiling a query if it is possible to do so Yeah, one thing that might be interesting is, detect if the compose-query call is happening at compile time - and if so, automatically cache the output of to-sql onto the query itself.
You could further take advantage of that by saying, ‘ok, we’ve got this pregenerated query - you can change any of the literal values in the query and we won’t regenerate it; we’ll just replace the parameter’