summaryrefslogtreecommitdiff
path: root/myisam/mi_write.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-11-20 22:56:57 +0200
committerunknown <monty@mashka.mysql.fi>2002-11-20 22:56:57 +0200
commit9b9546edbc095e061167588f672549103627bf98 (patch)
tree1deb846a75b9e1e5c1491e20df66b4d74fc6fa0b /myisam/mi_write.c
parent33d678fcdc2d0b431c0f08e11e0b6715cd37cda0 (diff)
downloadmariadb-git-9b9546edbc095e061167588f672549103627bf98.tar.gz
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
Diffstat (limited to 'myisam/mi_write.c')
-rw-r--r--myisam/mi_write.c3
1 files changed, 2 insertions, 1 deletions
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++);