Skip to content

Questions? Join our Discord.

JasperFx

Formal support for Wolverine, Marten, and Polecat is available through our Support Plans.

Refactor to Marten Compiled Query Added in 1.3.0

Detect repeated Marten LINQ queries inline in handlers/endpoints and refactor them into ICompiledQuery<TDoc, TResult> returned from Load or attached via [FromQuerySpecification].

Use when the same session.Query<T>().Where(...) shape appears in two or more places, when a hot read should be cached at the LINQ-tree level, or when consolidating queries to participate in Wolverine's batched loads.

Skill details

  • Skill name: wolverine-refactor-to-compiled-query
  • Applies to: wolverine, marten
  • Tags: refactoring, marten, compiled-queries, performance, handlers
  • Added in: 1.3.0
  • License: Proprietary. Copyright JasperFx Software LLC.

Proprietary. Copyright © JasperFx Software LLC. See LICENSE for terms.