Class PvtPrefilterRenderer
Renders a into the SQL fragment that goes into the WHERE of the
_values scan feeding the pivot aggregate.
The analysis is provider-agnostic and lives in . This part is
not, and SQLite differs from PostgreSQL in one place that matters here: there is no ILIKE, and
LIKE is already case-insensitive for ASCII, so the IgnoreCase operators map onto plain LIKE.
Kept in step with the operator mapping in .
Worth knowing before expecting PostgreSQL-sized numbers: SQLite has no trigram index, so a LIKE
branch will not become an index lookup. What the prefilter buys here is fewer rows entering the
aggregate, not a different access path.
public static class PvtPrefilterRenderer
Inheritance
Methods
RenderBranch(string, PvtPrefilterBranch, SqlParameterCollector)
Renders one branch: the structure it belongs to, then every predicate on it.
public static string RenderBranch(string alias, PvtPrefilterBranch branch, SqlParameterCollector collector)
RenderDisjunction(string, PvtPrefilterCandidate, SqlParameterCollector)
The branches of a narrow OR () as one condition on a _values row,
public static string RenderDisjunction(string valuesAlias, PvtPrefilterCandidate candidate, SqlParameterCollector collector)
RenderRowFilter(PvtPrefilterPlan, string, SqlParameterCollector)
Branches are ORed: a _values row belongs to exactly one structure, so a disjunction is the
public static string RenderRowFilter(PvtPrefilterPlan plan, string valuesAlias, SqlParameterCollector collector)