right now, we are just commenting your code for SQLite:
... SameText(SQLGenerator.SqlDialect, 'SQLite') ...
because we do not use SQLite and this got bad performance...
Maybe you could provide a global option, so that we could deactivate SQLite features