diff options
author | Igor Babaev <igor@askmonty.org> | 2019-08-30 18:47:14 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-08-30 18:47:14 -0700 |
commit | 9380850d874c77656d0c42cfa11bf0d187064849 (patch) | |
tree | 5abffcd5f13bfd03089e049cb22c1b0c21c47ce0 /sql/sql_select.h | |
parent | fac81c67527605710e1cc76db6df4b8fce34b06b (diff) | |
download | mariadb-git-9380850d874c77656d0c42cfa11bf0d187064849.tar.gz |
MDEV-15777 Use inferred IS NOT NULL predicates in the range optimizer
This patch introduces the optimization that allows range optimizer to
consider index range scans that are built employing NOT NULL predicates
inferred from WHERE conditions and ON expressions.
The patch adds a new optimizer switch not_null_range_scan.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 40a9ed303f7..0c226e54706 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1781,6 +1781,7 @@ public: void add_keyuses_for_splitting(); bool inject_best_splitting_cond(table_map remaining_tables); bool fix_all_splittings_in_plan(); + void make_notnull_conds_for_range_scans(); bool transform_in_predicates_into_in_subq(THD *thd); private: |