Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
03081bc1
Commit
03081bc1
authored
Jul 14, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the default setting of the optimizer switch 'optimize_join_buffer_size'.
Made it 'off' by default.
parent
0aaae1e3
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
34 additions
and
21 deletions
+34
-21
mysql-test/r/join_cache.result
mysql-test/r/join_cache.result
+1
-0
mysql-test/r/join_nested_jcl6.result
mysql-test/r/join_nested_jcl6.result
+1
-0
mysql-test/r/join_outer_jcl6.result
mysql-test/r/join_outer_jcl6.result
+1
-0
mysql-test/r/optimizer_switch.result
mysql-test/r/optimizer_switch.result
+18
-18
mysql-test/r/select_jcl6.result
mysql-test/r/select_jcl6.result
+1
-0
mysql-test/r/subselect3_jcl6.result
mysql-test/r/subselect3_jcl6.result
+1
-0
mysql-test/r/subselect_sj2_jcl6.result
mysql-test/r/subselect_sj2_jcl6.result
+1
-0
mysql-test/r/subselect_sj_jcl6.result
mysql-test/r/subselect_sj_jcl6.result
+1
-0
mysql-test/t/join_cache.test
mysql-test/t/join_cache.test
+1
-0
mysql-test/t/join_nested_jcl6.test
mysql-test/t/join_nested_jcl6.test
+1
-0
mysql-test/t/join_outer_jcl6.test
mysql-test/t/join_outer_jcl6.test
+1
-0
mysql-test/t/select_jcl6.test
mysql-test/t/select_jcl6.test
+1
-0
mysql-test/t/subselect3_jcl6.test
mysql-test/t/subselect3_jcl6.test
+1
-0
mysql-test/t/subselect_sj2_jcl6.test
mysql-test/t/subselect_sj2_jcl6.test
+1
-0
mysql-test/t/subselect_sj_jcl6.test
mysql-test/t/subselect_sj_jcl6.test
+1
-0
sql/mysql_priv.h
sql/mysql_priv.h
+1
-2
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysql-test/r/join_cache.result
View file @
03081bc1
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
DROP DATABASE IF EXISTS world;
DROP DATABASE IF EXISTS world;
set @save_optimizer_switch=@@optimizer_switch;
set @save_optimizer_switch=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
...
...
mysql-test/r/join_nested_jcl6.result
View file @
03081bc1
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
...
...
mysql-test/r/join_outer_jcl6.result
View file @
03081bc1
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
...
...
mysql-test/r/optimizer_switch.result
View file @
03081bc1
This diff is collapsed.
Click to expand it.
mysql-test/r/select_jcl6.result
View file @
03081bc1
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
set @@optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
...
...
mysql-test/r/subselect3_jcl6.result
View file @
03081bc1
set @save_optimizer_switch=@@optimizer_switch;
set @save_optimizer_switch=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
...
...
mysql-test/r/subselect_sj2_jcl6.result
View file @
03081bc1
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on';
...
...
mysql-test/r/subselect_sj_jcl6.result
View file @
03081bc1
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @save_optimizer_switch_jcl6=@@optimizer_switch;
set @@optimizer_switch='optimize_join_buffer_size=on';
set @@optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set @@optimizer_switch='semijoin=on,firstmatch=on,loosescan=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='semijoin_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
set @@optimizer_switch='outer_join_with_cache=on';
...
...
mysql-test/t/join_cache.test
View file @
03081bc1
...
@@ -4,6 +4,7 @@ DROP DATABASE IF EXISTS world;
...
@@ -4,6 +4,7 @@ DROP DATABASE IF EXISTS world;
--
enable_warnings
--
enable_warnings
set
@
save_optimizer_switch
=@@
optimizer_switch
;
set
@
save_optimizer_switch
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
optimizer_switch
=
'semijoin=on,firstmatch=on,loosescan=on'
;
set
optimizer_switch
=
'semijoin=on,firstmatch=on,loosescan=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
...
...
mysql-test/t/join_nested_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
set
@@
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
...
...
mysql-test/t/join_outer_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
...
...
mysql-test/t/select_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
set
@@
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
...
...
mysql-test/t/subselect3_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch
=@@
optimizer_switch
;
set
@
save_optimizer_switch
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
...
...
mysql-test/t/subselect_sj2_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
set
optimizer_switch
=
'mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'
;
...
...
mysql-test/t/subselect_sj_jcl6.test
View file @
03081bc1
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
#
#
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@
save_optimizer_switch_jcl6
=@@
optimizer_switch
;
set
@@
optimizer_switch
=
'optimize_join_buffer_size=on'
;
set
@@
optimizer_switch
=
'semijoin=on,firstmatch=on,loosescan=on'
;
set
@@
optimizer_switch
=
'semijoin=on,firstmatch=on,loosescan=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'semijoin_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
set
@@
optimizer_switch
=
'outer_join_with_cache=on'
;
...
...
sql/mysql_priv.h
View file @
03081bc1
...
@@ -613,8 +613,7 @@ enabled by default, add OPTIMIZER_SWITCH_MATERIALIZATION
...
@@ -613,8 +613,7 @@ enabled by default, add OPTIMIZER_SWITCH_MATERIALIZATION
OPTIMIZER_SWITCH_SUBQUERY_CACHE|\
OPTIMIZER_SWITCH_SUBQUERY_CACHE|\
OPTIMIZER_SWITCH_JOIN_CACHE_INCREMENTAL | \
OPTIMIZER_SWITCH_JOIN_CACHE_INCREMENTAL | \
OPTIMIZER_SWITCH_JOIN_CACHE_HASHED | \
OPTIMIZER_SWITCH_JOIN_CACHE_HASHED | \
OPTIMIZER_SWITCH_JOIN_CACHE_BKA | \
OPTIMIZER_SWITCH_JOIN_CACHE_BKA)
OPTIMIZER_SWITCH_OPTIMIZE_JOIN_BUFFER_SIZE)
/*
/*
Replication uses 8 bytes to store SQL_MODE in the binary log. The day you
Replication uses 8 bytes to store SQL_MODE in the binary log. The day you
...
...
sql/mysqld.cc
View file @
03081bc1
...
@@ -498,7 +498,7 @@ static const char *optimizer_switch_str="index_merge=on,index_merge_union=on,"
...
@@ -498,7 +498,7 @@ static const char *optimizer_switch_str="index_merge=on,index_merge_union=on,"
"join_cache_incremental=on,"
"join_cache_incremental=on,"
"join_cache_hashed=on,"
"join_cache_hashed=on,"
"join_cache_bka=on,"
"join_cache_bka=on,"
"optimize_join_buffer_size=o
n
,"
"optimize_join_buffer_size=o
ff
,"
"table_elimination=on"
;
"table_elimination=on"
;
;
;
#ifdef SAFEMALLOC
#ifdef SAFEMALLOC
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment