Method GenerateProbedStreamsCte(IReadOnlyList<FieldInfo>, string, string, string?, string, string, IReadOnlyCollection<string>?, string, int)

Assembly: redb.Postgres.Pro.dll

The streams form with a probe for a condition that is wide by its shape (an open range) but may
be narrow by the data. The probe reads that condition from the index of values, at most
probeCap rows. Fewer than that: the condition is narrow, and the streams start
from the objects the probe found, without the fence. The cap reached: the condition is wide, and
the fenced streams run as before. One statement, one branch runs, chosen by a one-time filter.
Weight over 7 500, 410 points of 689 thousand: 837 ms fenced, 55 ms from the probe.

public PvtSqlGenerator.PvtCteResult GenerateProbedStreamsCte(IReadOnlyList<FieldInfo> fields, string whereCondition, string schemeIdParam, string? additionalObjectFilter, string orderByClause, string paginationClause, IReadOnlyCollection<string>? baseColumns, string probeCondition, int probeCap)