summaryrefslogtreecommitdiff
path: root/sql/sql_join_cache.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-02-04 19:06:35 -0800
committerIgor Babaev <igor@askmonty.org>2011-02-04 19:06:35 -0800
commit4b24105df8c53ad1d432d7033b3e606ae4c24196 (patch)
treea6d5f824e078e83ed3eb61f1581591a2d271bebf /sql/sql_join_cache.h
parent7e206872128d891fffa5238c093c8d6506da8dbb (diff)
downloadmariadb-git-4b24105df8c53ad1d432d7033b3e606ae4c24196.tar.gz
Introduced optimizer switch flag 'optimize_join_buffer_size'.
When this flag is 'off' the size of the used join buffer is taken directly from the system variable 'join_buffer_size'. When this flag is 'on' then the size of the buffer depends on the estimated number of rows in the partial join whose records are to be stored in the buffer. By default this flag is set 'on'.
Diffstat (limited to 'sql/sql_join_cache.h')
-rw-r--r--sql/sql_join_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_join_cache.h b/sql/sql_join_cache.h
index 546067fad24..45aded46de4 100644
--- a/sql/sql_join_cache.h
+++ b/sql/sql_join_cache.h
@@ -583,7 +583,7 @@ public:
/* Get the minimum possible size of the cache join buffer */
virtual ulong get_min_join_buffer_size();
/* Get the maximum possible size of the cache join buffer */
- virtual ulong get_max_join_buffer_size();
+ virtual ulong get_max_join_buffer_size(bool optimize_buff_size);
/* Shrink the size if the cache join buffer in a given ratio */
bool shrink_join_buffer_in_ratio(ulonglong n, ulonglong d);