Skip to content

Generating code with FastExpressionCompiler

Jacek Hełka edited this page Aug 5, 2025 · 3 revisions

By default, DbFun compiles code using LambdaExpression<'T>.Compile() method.

You can configure it to use FastExpressionCompiler instead by adding DbFun.FastExpressionCompiler package from nuget and replacing default compiler in config:

let config = QueryConfig.Default(createConnection).UseFastExpressionCompiler()

Using improves startup time (compilation is 10-40x faster) and, in some cases, runtime.

Clone this wiki locally