Property EnablePvtPrefilter
The query planner (Pro, all three providers: PostgreSQL, SQL Server, SQLite). On by default.
Where it applies, a query is read in the streams form: the objects of the scheme drive the
statement and every Props field is a join of its own to its rows of _values, with no
GROUP BY. The filter, the ordering and the page, a count, an existence check, aggregates,
GroupBy and windows run in that one statement, so a page or a count does not pivot every
object of the scheme first.
A field of a nested class is one value row per object and reads through the streams form.
The aggregate pivot remains for array element forms (field[], field[0],
aggregates over elements), classes inside arrays, the first step of WhereHasAncestor and
WhereHasDescendant, and tree-window fields that are arrays. There the planner may narrow
the object set before the aggregate. It only ever narrows to a superset: results never
change, and a filter it cannot analyse runs as without it.
Set it to false to read every query in the aggregate pivot form. For one block of code, without touching
concurrent requests: using (redb.WithQueryPlanner(false)) { ... } ().
public bool EnablePvtPrefilter { get; set; }