1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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'.
This commit is contained in:
Igor Babaev
2011-02-04 19:06:35 -08:00
parent 7e20687212
commit 4b24105df8
5 changed files with 62 additions and 43 deletions

View File

@ -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);