summaryrefslogtreecommitdiff
path: root/sql/sql_const.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2014-08-29 14:09:51 +0300
committerSergey Vojtovich <svoj@mariadb.org>2014-12-05 11:01:50 +0400
commit070a6e7a890e5a73eb38920657c060605e520b55 (patch)
tree33268dd48283f0ae232c0b378ed42c83c18398ab /sql/sql_const.h
parent9127784d5ce845c9d66a34eee371cbaf82468d89 (diff)
downloadmariadb-git-070a6e7a890e5a73eb38920657c060605e520b55.tar.gz
- Changed default values of query_prealloc_size and query_alloc_block_size
so that a simple query with one join would not have to call my_malloc. - Allow lower limites for query_prealloc_size for testing. - Fixed wrong initialization of trans_alloc_block_size
Diffstat (limited to 'sql/sql_const.h')
-rw-r--r--sql/sql_const.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_const.h b/sql/sql_const.h
index 2cbc616559d..18a74d8579e 100644
--- a/sql/sql_const.h
+++ b/sql/sql_const.h
@@ -148,9 +148,9 @@
#define MYSQLD_NET_RETRY_COUNT 10 ///< Abort read after this many int.
#endif
-#define QUERY_ALLOC_BLOCK_SIZE 8192
-#define QUERY_ALLOC_PREALLOC_SIZE 8192
-#define TRANS_ALLOC_BLOCK_SIZE 4096
+#define QUERY_ALLOC_BLOCK_SIZE 16384
+#define QUERY_ALLOC_PREALLOC_SIZE 24576
+#define TRANS_ALLOC_BLOCK_SIZE 8192
#define TRANS_ALLOC_PREALLOC_SIZE 4096
#define RANGE_ALLOC_BLOCK_SIZE 4096
#define ACL_ALLOC_BLOCK_SIZE 1024