From 61eb4ca1c89ef187e204e8fdb8e3c7930e60e9ef Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 20 Nov 2002 22:56:57 +0200 Subject: Try to optimize the cache buffer size needed for bulk_insert Fix for shutdown on Mac OS X include/my_tree.h: Try to optimize the cache buffer size needed for bulk_insert myisam/mi_write.c: Try to optimize the cache buffer size needed for bulk_insert mysql-test/r/bdb.result: Make test repeatable mysql-test/t/bdb.test: Make test repeatable mysys/tree.c: Try to optimize the cache buffer size needed for bulk_insert sql/mysql_priv.h: Small optimization sql/mysqld.cc: Fix for shutdown on Mac OS X sql/sql_insert.cc: Try to optimize the cache buffer size needed for bulk_insert sql/sql_yacc.yy: Call thd->strmake() instead of sql_strmake() sql/table.cc: Try to optimize the cache buffer size needed for bulk_insert sql/table.h: Try to optimize the cache buffer size needed for bulk_insert --- myisam/mi_write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'myisam/mi_write.c') diff --git a/myisam/mi_write.c b/myisam/mi_write.c index cfacd0bc4d5..70a1bea26bb 100644 --- a/myisam/mi_write.c +++ b/myisam/mi_write.c @@ -842,8 +842,9 @@ int _mi_init_bulk_insert(MI_INFO *info, ulong cache_size) { params->info=info; params->keynr=i; + /* Only allocate a 16'th of the buffer at a time */ init_tree(&info->bulk_insert[i], - cache_size / num_keys / 4 + 10, + cache_size / num_keys / 16 + 10, cache_size / num_keys, 0, (qsort_cmp2)keys_compare, 0, (tree_element_free) keys_free, (void *)params++); -- cgit v1.2.1