Field StreamsScalarIndex
The covering index of the streams form: the scalar value of a field next to its object, in
object order. Created by Sql/pvt_streams_indexes.sql, not by the schema; the same name is
there, they have to agree.
Naming it in a table hint makes every visit to a stream index-only and keeps the stream from
being read through a value index (structure, value, object) on the strength of a row estimate
that is wrong by two orders of magnitude for list fields. The provider does it only where the
objects drive (a base-column filter, FORCE ORDER): up to 5 times faster there. Elsewhere a
value index may be the right way in, see ProQueryProvider. Measured in MSSQL_LEAD_VALUE.md.
A statement that names an index the database does not have fails, so the caller passes the
hint only after it has seen the index.
public const string StreamsScalarIndex = "IX__values__structure_object_scalar"