On Wed, Nov 14, 2012 at 08:52:23AM -0500, Jeff Butler wrote:
> This is MyBatis dynamic SQL. The XML is only parsed one time, but the SQL
> is re-generated every time the query is run.
> The *ByExample queries generated by MyBatis generator are very flexible,
> but flexibility always comes with a cost.
> If you are concerned about performance, you should write some tests to see
> what the impact will be in your environment. If your queries are always
> the same, it would likely be better to write custom SQL.
But custom SQL will be built with same expressions. What I want to know - is
generation based on some sort of finite-state machine, generated from XML into
bytecode? Or it is evaluated at runtime?
--
Eugene N Dzhurinsky