Setting the IN List Range Missing Multiplier

The inListRangeMissingMultiplier flag caps the values missing from a list compiled as a range by inListRangeMinValues, relative to inListJoinThreshold.

The values missing from the range, multiplied by this flag, may not exceed inListJoinThreshold. Past that threshold the list would otherwise have been compiled as a join, which costs no comparison per value, while each missing value in a range does.

The following describes the inListRangeMissingMultiplier flag:

  • Data type - int

  • Default value - 2

  • Allowed values - 0 or any positive integer

Setting the flag to 0 lifts the cap, leaving inListRangeMaxMissingPercent as the only limit on missing values.

The flag may be set for the session:

SET inListRangeMissingMultiplier = 4;

For the three forms an IN list is compiled into, and where this flag applies among them, see Compiling IN Lists.