Skip to content

Commit ebcb981

Browse files
author
Sergey Glukhov
committed
WL#9167 Index merge hints.
INDEX_MERGE, NO_INDEX_MERGE hints are added to allow the user to control index merge behavior for the particular query without changing the optimizer switch. INDEX_MERGE hint: The hint forces the optimizer to use index merge for the specified table using the specified set of indexes. If no index is specified, all possible index combinations are considered by the optimizer and cheapest one is selected. NO_INDEX_MERGE hint: The hint disables index merge combinations that involve any of the specified indexes. If no index is specified, index merge is not allowed for the table.
1 parent ccd567f commit ebcb981

17 files changed

+2442
-51
lines changed

mysql-test/r/mysqld--help-notwin.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ performance-schema-consumer-global-instrumentation TRUE
14431443
performance-schema-consumer-statements-digest TRUE
14441444
performance-schema-consumer-thread-instrumentation TRUE
14451445
performance-schema-digests-size -1
1446-
performance-schema-error-size 1080
1446+
performance-schema-error-size 1081
14471447
performance-schema-events-stages-history-long-size -1
14481448
performance-schema-events-stages-history-size -1
14491449
performance-schema-events-statements-history-long-size -1

mysql-test/r/mysqld--help-win.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ performance-schema-consumer-global-instrumentation TRUE
14391439
performance-schema-consumer-statements-digest TRUE
14401440
performance-schema-consumer-thread-instrumentation TRUE
14411441
performance-schema-digests-size -1
1442-
performance-schema-error-size 1080
1442+
performance-schema-error-size 1081
14431443
performance-schema-events-stages-history-long-size -1
14441444
performance-schema-events-stages-history-size -1
14451445
performance-schema-events-statements-history-long-size -1

mysql-test/r/opt_hints_index_merge.result

Lines changed: 530 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)