June 19, 2013

Post: MySQL Query Patterns, Optimized - Webinar questions followup

… Nearly every solution for randomly choosing rows involves some compromise, either of performance,…and reinitializing the sequence after making certain insert/update/delete operations.  If you have…count the movies per production year for each kind_id. It was more efficient in this case to force MySQL

Post: Is your MySQL buffer pool warm? Make it sweat!

…1 –mysql-username playback –mysql-password PaSSwOrd –mysql-schema schema_name –query-log-stdin –dispatcher-plugin thread-pool –thread-pool-threads-count 100 –session…is an important step because update statements that match no rows or insert statements that have duplicate key errors may be …

Post: Is Synchronous Replication right for your app?

MySQL replication from this instance, since MySQL replication is asynchronous. What about semi-sync MySQL… if( $last_count % 100 == 0 ) { $db->do( “UPDATE achievements SET count = $last_count where achievement = ‘killed_…to update the parent group row so often? INSERT INTO users_groups (user_id, group…

Post: Benchmarking Percona Server TokuDB vs InnoDB

…,10000) // distributed by pareto distribution $C, $PAD = random_string() BEGIN INSERT INTO sbtest (id, k, c, pad) VALUES ($ID, $K, $C… dataset. We can easily fill TokuDB tables with 1bln of rows on this SSD, and projected InnoDB performance on this size…/sysbench/insert-roll-2, command line to run: sysbench –test=insert_roll.lua –oltp-table-size=10000 –mysql-user=root –oltp-tables-count=32 –mysql

Post: Virident vCache vs. FlashCache: Part 2

…78GiB of data (32 tables, 10M rows each) and a 4GiB buffer pool…MySQL & Benchmark Configuration All benchmarks were conducted with the following: sysbench ­­–num­-threads=32 ­­–test=tests/db/oltp.lua ­­–oltp_tables_count…1M read_rnd_buffer_size = 4M bulk_insert_buffer_size = 8M myisam_sort_buffer_…

Post: Wow. My 6 year old MySQL Bug is finally fixed in MySQL 5.6

…execution: | Handler_read_next | 1305742982 | mysql> select count(*) from trunc where i=4147483647; +———-+ | count(*) | +———-+ | 0 | +———-+ 1 row in set, 1 warning (0…and the column type was inconsistent between them… so inserts into one table would happen with correct value, such…

Post: Ultimate MySQL variable and status reference list

MySQLinsert_limitblogpercona.commanual Delayed_insert_threadsblogpercona.commanual delayed_insert

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

…| use_stopword | 1 | | table_state | 0 | +—————————+——–+ 10 rows in set (0.00 sec) mysql> insert into dir_test_innodb (full_name,…_doc_id | 1032677 | | last_optimized_word | | | deleted_doc_count | 0 | | total_word_count | | | optimize_start_time | | | optimize_end_time | | …

Post: Debugging problems with row based replication

…02 sec) Insert a single “seed” row into the table: INSERT INTO repl.t1 VALUES (); Query OK, 1 row affected (0.00 sec) INSERT … …play with: select count(*) from t1; +———-+ | count(*) | +———-+ |    65536 | +———-+ 1 row in set (0.02 sec) My test setup includes a MySQL slave.  After …

Post: The case for getting rid of duplicate “sets”

… | val | count(*) | +—–+—–+———-+ | 0 | 0 | 1 | +—–+—–+———-+ 1 row in set (0.00 sec) mysql> insert into ex2 values (2,1); Query OK, 1 row affected (0.00 sec) mysql> select a.val, b.val, count(*) from…