Class QueryPlannerScope
The query planner () switched for a block of code:
using (redb.WithQueryPlanner(false)) { ... }. The configuration is one object per process, and changing it
changes every concurrent request; a block changes only the calling flow (an ), the awaits
and tasks inside it included, and disposing it restores what was in effect before. Blocks nest.
Pro reads the planner through ; Free has no planner and ignores it.
public static class QueryPlannerScope
Inheritance
Properties
BlockValue
The value set by the innermost block of the calling flow; null outside any block.
public static bool? BlockValue { get; }
Methods
IsEnabled(RedbServiceConfiguration)
Whether the planner is on for the calling flow: the innermost block, else the configuration.
public static bool IsEnabled(RedbServiceConfiguration configuration)