summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-04-19 19:35:13 +0300
committerunknown <sanja@askmonty.org>2013-04-19 19:35:13 +0300
commit1a8486a842f177022d7deec060b12756cb26a9fb (patch)
treea3f11910581bf013bde0bc40eef00eedac614410 /sql/opt_range.h
parentc44c923156e9eb380121048dc589893fdd0e3081 (diff)
downloadmariadb-git-1a8486a842f177022d7deec060b12756cb26a9fb.tar.gz
MDEV-4345: fixed optimizer_selectivity_sampling_limit default value.
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index 963551cabdb..ddaa5c5e59a 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -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 5000
+#define SELECTIVITY_SAMPLING_LIMIT 100
/* 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 */