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
1a8486a8
Commit
1a8486a8
authored
Apr 19, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4345: fixed optimizer_selectivity_sampling_limit default value.
parent
c44c9231
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
mysql-test/suite/sys_vars/r/optimizer_selectivity_sampling_limit_basic.result
..._vars/r/optimizer_selectivity_sampling_limit_basic.result
+12
-12
mysql-test/suite/sys_vars/t/optimizer_selectivity_sampling_limit_basic.test
...ys_vars/t/optimizer_selectivity_sampling_limit_basic.test
+2
-2
sql/opt_range.h
sql/opt_range.h
+1
-1
No files found.
mysql-test/suite/sys_vars/r/optimizer_selectivity_sampling_limit_basic.result
View file @
1a8486a8
SET @start_global_value = @@global.optimizer_selectivity_sampling_limit;
SELECT @start_global_value;
@start_global_value
50
00
1
00
SET @start_session_value = @@session.optimizer_selectivity_sampling_limit;
SELECT @start_session_value;
@start_session_value
50
00
1
00
'#--------------------FN_DYNVARS_115_01-------------------------#'
SET @@global.optimizer_selectivity_sampling_limit = DEFAULT;
SELECT @@global.optimizer_selectivity_sampling_limit;
@@global.optimizer_selectivity_sampling_limit
50
00
1
00
SET @@session.optimizer_selectivity_sampling_limit = DEFAULT;
SELECT @@session.optimizer_selectivity_sampling_limit;
@@session.optimizer_selectivity_sampling_limit
50
00
1
00
'#--------------------FN_DYNVARS_115_02-------------------------#'
SET @@global.optimizer_selectivity_sampling_limit = DEFAULT;
SELECT @@global.optimizer_selectivity_sampling_limit =
50
00;
@@global.optimizer_selectivity_sampling_limit =
50
00
SELECT @@global.optimizer_selectivity_sampling_limit =
1
00;
@@global.optimizer_selectivity_sampling_limit =
1
00
1
SET @@session.optimizer_selectivity_sampling_limit = DEFAULT;
SELECT @@session.optimizer_selectivity_sampling_limit =
50
00;
@@session.optimizer_selectivity_sampling_limit =
50
00
SELECT @@session.optimizer_selectivity_sampling_limit =
1
00;
@@session.optimizer_selectivity_sampling_limit =
1
00
1
'#--------------------FN_DYNVARS_115_03-------------------------#'
SELECT @@global.optimizer_selectivity_sampling_limit;
@@global.optimizer_selectivity_sampling_limit
50
00
1
00
SET @@global.optimizer_selectivity_sampling_limit = 9;
Warnings:
Warning 1292 Truncated incorrect optimizer_selectivity_sampling_l value: '9'
...
...
@@ -63,7 +63,7 @@ SELECT @@global.optimizer_selectivity_sampling_limit;
'#--------------------FN_DYNVARS_115_04-------------------------#'
SELECT @@session.optimizer_selectivity_sampling_limit;
@@session.optimizer_selectivity_sampling_limit
50
00
1
00
SET @@session.optimizer_selectivity_sampling_limit = 9;
Warnings:
Warning 1292 Truncated incorrect optimizer_selectivity_sampling_l value: '9'
...
...
@@ -134,8 +134,8 @@ SELECT @@local.optimizer_selectivity_sampling_limit = @@session.optimizer_select
SET @@global.optimizer_selectivity_sampling_limit = @start_global_value;
SELECT @@global.optimizer_selectivity_sampling_limit;
@@global.optimizer_selectivity_sampling_limit
50
00
1
00
SET @@session.optimizer_selectivity_sampling_limit = @start_session_value;
SELECT @@session.optimizer_selectivity_sampling_limit;
@@session.optimizer_selectivity_sampling_limit
50
00
1
00
mysql-test/suite/sys_vars/t/optimizer_selectivity_sampling_limit_basic.test
View file @
1a8486a8
...
...
@@ -34,10 +34,10 @@ SELECT @@session.optimizer_selectivity_sampling_limit;
#########################################################################
SET
@@
global
.
optimizer_selectivity_sampling_limit
=
DEFAULT
;
SELECT
@@
global
.
optimizer_selectivity_sampling_limit
=
50
00
;
SELECT
@@
global
.
optimizer_selectivity_sampling_limit
=
1
00
;
SET
@@
session
.
optimizer_selectivity_sampling_limit
=
DEFAULT
;
SELECT
@@
session
.
optimizer_selectivity_sampling_limit
=
50
00
;
SELECT
@@
session
.
optimizer_selectivity_sampling_limit
=
1
00
;
--
echo
'#--------------------FN_DYNVARS_115_03-------------------------#'
...
...
sql/opt_range.h
View file @
1a8486a8
...
...
@@ -1052,7 +1052,7 @@ void store_key_image_to_rec(Field *field, uchar *ptr, uint len);
extern
String
null_string
;
/* check this number of rows (default value) */
#define SELECTIVITY_SAMPLING_LIMIT
50
00
#define SELECTIVITY_SAMPLING_LIMIT
1
00
/* but no more then this part of table (10%) */
#define SELECTIVITY_SAMPLING_SHARE 0.10
/* do not check if we are going check less then this number of records */
...
...
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