June 18, 2013

Post: Benchmarking Percona Server TokuDB vs InnoDB

… will interesting how both …tmp_table_size = 64M server-id = 10 #*** MyISAM Specific options key_buffer_size = 8M read_buffer_size = 1M read_rnd_buffer_size = 4M bulk_insert_buffer_sizetables TokuDB-related options are all defaults, as I understand from documentation TokuDB comes with good settings

Post: TMP_TABLE_SIZE and MAX_HEAP_TABLE_SIZE

… manual at least ? But what surprises me the most is how this issue was fixed (patch pending): ChangeSet@1.2311, 2006… option “disk-tmp-table-size” introduced to set maximum expected on-disk temporary table size and avoid mix-up of tmp_table_size and max_heap_table_size ChangeSet@1.2358…

Post: How to find MySQL queries worth optimizing ?

… Rows_read: 0 # Bytes_sent: 213 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 # InnoDB_trx_id: 12F14 SET timestamp=1347398285; select * from sbtest where… Rows_read: 2 # Bytes_sent: 75 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 # InnoDB_trx_id: 12F24 SET timestamp=1347399108; select count(*) from sbtest… with “yes or no” answer but rather helps to understand how much optimization is possible. For example I might have query…

Post: How Percona does a MySQL Performance Audit

tmp_tables and Created_disk_tmp_tables, I’ll paste in mysql> show global variables like ‘%table_size%’; +———————+———–+ | Variable_name | Value | +———————+———–+ | max_heap_table_size | 268435456 | | tmp_table_size…the table. We explain how … customers set up …

Post: How much overhead is caused by on disk temporary tables

… to see how much overhead do on disk temporary tables cause compared to MEMORY tables. To have things comparable I used medium size table and… rows we have mysql> set max_heap_table_size=1000000000; Query OK, 0 rows affected (0.00 sec) mysql> set tmp_table_size=1000000000; Query OK, 0…

Post: When Does InnoDB Update Table Statistics? (And When It Can Bite)

…: 34187 Tmp_tables: 1 Tmp_disk_tables: 0 Tmp_table_sizes: 0 SET timestamp=1316767697; show table status from `db1`; As you can see db1 has about 294 tables and… feature). When set to 0, automatic updates to the table statistics (items 1 and 2 above) is disabled unless ANALYZE TABLE is ran… open of the table. On my next post, I will discuss the effects of disabling the feature and how you or your…

Post: Identifying the load with the help of pt-query-digest and Percona Server

…: 68 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 # InnoDB_trx_id: F00 # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on… wp_options table. Another thing to note is the last line in the output the # MISC part, it tells you how much…. The tmp table size needed per query is 270.35k, which is not much considering the fact that tmp_tbl_size variable is set to 32M…

Post: Troubleshooting MySQL Memory Usage

Tables MEMORY tables can take memory. There are implicit MEMORY tables which are allocated for query execution, which size can be controlled by tmp_table_size and… temporary. There is a max_heap_table_size variable which allows you to limit size of MEMORY tables (the limit applies both to implicit… 3 rows in set (0.00 sec) Innodb Memory Usage Finally it is often helpful to check how much memory Innodb has…

Post: Shard-Query EC2 images available

… in size. This will give us some interesting information about how Shard-Query will perform on each database. To do the size comparison…-buffer-size=512K sql-mode=STRICT_TRANS_TABLES symbolic-links table-definition-cache=16384 table-open-cache=128 thread-cache-size=32 thread-stack=256K tmp-table-size=64M transaction-isolation=READ-COMMITTED user=mysql wait-timeout=86400 To be continued You can now set

Post: MySQL Server Memory Usage

… such as full table scans, sorts, or need temporary tables as much as read_buffer_size, sort_buffer_size, read_rnd_buffer_size, tmp_table_size of memory… would like to see. Monitor how the value changes so you know memory requirements with current settings and increase/decrease values appropriately… may need its own read_buffer,sort_buffer, tmp_table_size etc Many variabes can be set per connection. So you can’t relay…