June 20, 2013

Post: Performance Schema tables stats

…and against single tables. Now after adding multi-tables support to sysbench, it is … 1. table_io_waits_summary_by_table mysql> select * from table_io_waits_summary_… COUNT_INSERT: 4292 SUM_TIMER_INSERT: 1343751174852 MIN_TIMER_INSERT: 31913539 AVG_TIMER_INSERT: 313082268 MAX_TIMER_INSERT: 57121140547…

Post: MySQL Users Conference - Innodb

…. The problem with multi value inserts however is the following – even if you know number of values in insert statement you do not…. There are probably similar problems in INSERT IGNORE and ON DUPLICATE KEY UPDATE cases. Now In MySQL 5.1+ it is also… patch out where already which may come in MySQL 5.2 or even MySQL 5.1. I surely would like to see…

Post: Moving Subtrees in Closure Table Hierarchies

… of adding a single new node. When you insert a subtree, you’re inserting multiple nodes, and you want to create new… the same table in a single query in MySQL. But we can use MySQL‘s multi-table DELETE syntax, to find any path… B (going up) and the descendants of D (going down). INSERT INTO TreePaths (ancestor, descendant, length) SELECT supertree.ancestor, subtree.descendant…

Comment: Edge-case behavior of INSERT...ODKU

… there’s no tomorrow due to mysql‘s gap locking. The method I use is to insert into these types of tables… an insert array. When there is no users left, we then do the insert / update. For insert implode the insert_array and use a multi-insert. i.e insert into users (username, host_id…

Post: On Character Sets and Disappearing Tables

…like this: CREATE TABLE recovery LIKE `#sql2-3c13-14`; INSERT INTO recovery SELECT * FROM `#sql2-3c13-14`; But … there’s something of an inconsistency present when MySQL won’t allow us to change an FK-…but it will allow us to change from a multi-byte character column to a single-byte character column…

Post: MySQL caching methods and tips

… to satisfy a single request is not very efficient. Use multi_get when possible. Once again, caching entire portions of pages… since they were last populated. MySQL includes two statements that make this easier: CREATE TABLE .. SELECT and INSERT .. SELECT. These SQL commands… can be indexed appropriately for your queries. Using INSERT .. SELECT for summary tables The INSERT .. SELECT approach works best when there is…

Post: Recovery deleted ibdata1

…3600 –mysql-user=root run sysbench 0.4.12: multi-threaded system evaluation benchmark No DB drivers specified, using mysql Running…more than 1(it’s never less than 1): ————————————- INSERT BUFFER AND ADAPTIVE HASH INDEX ————————————- Ibuf: size 1, free…

Post: Infinite Replication Loop

… more transactions that are replicating over and over in a Multi Master Replication relationship. This happens because those transactions belong to… time those looping statement were first inserted. Another way to see it is by monitoring your MySQL server with cacti, you will… wrong server-id are performed on the two slaves (mysql 3 and mysql 4) and the new events (with server-id 1…

Post: Why Swapping is bad for MySQL Performance ?

… of these were designed before SSD era. For example Insert Buffer in MySQL makes a special effort to avoid (delay) IO. If… on its own lets see what swapping does for concurrent (multi CPU, multi client) processing. Database Locks/Latches are typically designed to… consumption spike you may prefer to see slowdown instead of MySQL being killed because of out of memory but do react…

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

… MyISAM list. What happens if we take the MyISAM stopwords, insert them into a table, and configure that table to be…) mysql: SET GLOBAL innodb_ft_server_stopword_table=’test/innodb_ft_list2′; Query OK, 0 rows affected (0.00 sec) mysql: INSERT INTO… 4. This may or may not be the case with multi-byte character sets or with ideographic languages such as Japanese…