Setting the IN List Range Maximum Missing Percent
The inListRangeMaxMissingPercent flag sets the share of a range, as a percentage, that may be missing from a list
compiled as a range by inListRangeMinValues.
Each missing value stays in the condition as its own comparison, so a sparser range costs more to evaluate. Whatever this flag allows, the values missing from a range are never as many as the values present in it.
The following describes the inListRangeMaxMissingPercent flag:
Data type - int
Default value -
10Allowed values -
0to100
Setting the flag to 0 compiles a list as a range only when no values are missing between its bounds.
The flag may be set for the session:
SET inListRangeMaxMissingPercent = 25;
For the three forms an IN list is compiled into, and where this flag applies among them, see
Compiling IN Lists.