mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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
This commit is contained in:
@ -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++);
|
||||
|
Reference in New Issue
Block a user