June 18, 2013

Post: Benchmarking Percona Server TokuDB vs InnoDB

…k=VALUES(k)+k; INSERT INTO sbtest_r100 (id, k) VALUES ($ID/100, $K) ON DUPLICATE KEY UPDATE k=VALUES(k)+k; INSERTbuffer_size = 8M read_buffer_size = 1M read_rnd_buffer_size = 4M bulk_insert_buffer_size = 8M myisam_sort_buffer_size = 8M myisam_max_sort_file_size = 10G #myisam_max_extra_sort_file_size

Post: MySQL Server Variables - SQL layer or Storage Engine specific.

…. bulk_insert_buffer_size – Used by MyISAM tables only to optimize bulk inserts (multiple value inserts). Really helps if you have really bulk inserts 100-1000+ values per single insert statement. concurrent_insert – Enables concurrent insert (while Selects…

Post: MySQL Server Memory Usage

… might be even larger – bulk inserts may allocate bulk_insert_buffer_size bytes of memory if done to MyISAM tables. myisam_sort_buffer_size used for ALTER TABLE… read_buffer,sort_buffer, tmp_table_size etc Many variabes can be set per connection. So you can’t relay on global values if…

Comment: Thoughts on MySQL Replication

… and good sized bulk_insert_buffer_size performance improvement can be dramatic. Sometimes I’ve got 100 times increase (using 100.000 values per insert statement or so) – The tricks are however to increse max_allowed_packet as well and keep key_buffer_size larger than bulk_insert_buffer_size

Comment: MySQL Server Memory Usage

… tables are innodb, size of database 3 GB: Please let me know if we are having any wrong value or we can… tmp_table_size = 192M max_heap_table_size = 192M max_allowed_packet = 64M #max_connect_errors = 10000 read_rnd_buffer_size = 8M bulk_insert_buffer_size = 8M query_cache_limit = 254M query_cache_size = 254M query_cache_type = 1 query_prealloc_size = 65536 query_alloc_block_size

Post: Predicting how long data load would take

…from bulk_insert_tree_size increase myisam_sort_buffer_size or key_buffer_size increase. Innodb typically needs large innodb_buffer_pool_size and large innodb_log_file_size to… Mysqldump however takes care of special options to make multi value inserts as fast as possible as well, such as disabling …

Comment: Should you move from MyISAM to Innodb ?

… on, and data is compressed (key-buffer-size=4). Total db content is only 15G. Our Inserts drop to 2500 samples / seconds (400 kB per second) when compression is on. We perform bulk inserts (i.e. values (),(),(),…). I set the innodb_buffer_pool_size to 1G (having 4G ram) which seems to be the highest buffer allowed…

Post: MySQL Users Conference - Innodb

…and uncompression happening in parallel, improving buffer pool usage (currently you may …have to specify compressed block size, this is the size to which you expect each…insert cases – in fact if the insert is single value insert or the number of values in the bulk is known you can allocate all values

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

buffer pool for my 5.6 instance is 128MB – smaller than the sizebulk insert performance. At the very bottom, the page claims that you can speed up bulk…_ft_config; +—————————+———+ | KEY | VALUE | +—————————+———+ | optimize_checkpoint_limit | 180 | | …

Post: How many partitions can you have ?

… p1000000 VALUES LESS THAN(1000001) ); I used MySQL 5.1.41 for my tests increasing buffer pool to 1G and log file size… 1000000 of sequential values from 1 to 1million (the C column was set same as ID column) using bulk insert statements – 1000 rows… UPDATE set c=c+1 to my bulk inserts) the regression became even larger. 1 partition insert took 50 seconds to complete, 10…