From 26b1b214c0f204dc5eb2c9344fa0b16a31c14bf2 Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Thu, 2 Jul 2009 17:53:53 +0200 Subject: [PATCH] Set minimum table_open_cache and table_default_cache to 400 --- sql/mysql_priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 31077c63253..949fabe3928 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -264,7 +264,7 @@ protected: #define MAX_ACCEPT_RETRY 10 // Test accept this many times #define MAX_FIELDS_BEFORE_HASH 32 #define USER_VARS_HASH_SIZE 16 -#define TABLE_OPEN_CACHE_MIN 64 +#define TABLE_OPEN_CACHE_MIN 400 #define TABLE_OPEN_CACHE_DEFAULT 400 #define TABLE_DEF_CACHE_DEFAULT 400 /** @@ -280,7 +280,7 @@ protected: for now the only solution is to ensure that the table definition cache can contain at least all tables of a given statement. */ -#define TABLE_DEF_CACHE_MIN 256 +#define TABLE_DEF_CACHE_MIN 400 /* Stack reservation.