Details
Description
It is possible to construct queries that hit the MAX_SEL_ARG=16000 limit in the range optimizer. Unfortunately, this limit is only visible in debugger.
It is trivial print hitting this limit into the optimizer trace.
It is possible to construct queries that hit the MAX_SEL_ARG=16000 limit in the range optimizer. Unfortunately, this limit is only visible in debugger.
It is trivial print hitting this limit into the optimizer trace.
Note: starting from 10.5 and fix for
MDEV-9750, there other limits one can hit in the range optimizer. The optimizer makes a note in the trace when hitting themexamples:
"setup_range_conditions": [
{
"enforce_sel_arg_weight_limit": {
"index": "PRIMARY",
"old_weight": 105600,
"new_weight": 1560
}
}
],
"sel_arg_weight_heuristic": {
"key1_field": "year_id",
"key2_field": "location_id",
"key1_weight": 30,
"key2_weight": 3519
}