(Roman Vynar) You can use pt-query-digest to process a MySQL slow query log and store historical values for review trend analysis into query_review_history table.
Tag: Open Source
Avoiding statement-based replication warnings
(Baron Schwartz) Although not perfect, MySQL replication was probably the killer feature that made MySQL the default database for web applications some time ago. Since then, MySQL replication has been improved greatly, with such notable changes as row-based replication.
MySQL Cluster performance up again, or CLIENT_COMPRESS considered harmful
(Anders Karlsson) I’m back again (previous post in ths series is here)., with some interesting finds related to some more testing of MySQL Cluster testing (yes, I have promissed to test more things than this, but I got so entangled with NDB that I just had to give it one more shot).
MySQL Federated table
(Ashwin Ananthasayanan) This blog will explain you how to use Federated tables in MySQL. Just follow the steps mentioned below to use Federated table in your MySQL server:
Optimizing IN() queries against a compound index
(Baron Schwartz) Unfortunately, MySQL 5.5 doesn’t generate a very good query execution plan for IN() queries against a compound (multi-column) index, such as the following query that should be able to use the 2-column primary key:
Recovery after DROP & CREATE
(Aleksandr Kuzminsky) In a very popular data loss scenario a table is dropped and empty one is created with the same name. This is because mysqldump in many cases generates the “DROP TABLE” instruction before the “CREATE TABLE”:
MySQL 5.6 replication gotchas (and bugs)
(Giuseppe Maxia) There has been a lot of talk about MySQL 5.6 replication improvements. With few exceptions, what I have seen was either marketing messages or hearsay. This means that few people have really tried out the new features to see whether they meet the users needs.
SQL: selecting top N records per group, another solution
(Shlomi Noach) A while back I presented SQL: selecting top N records per group, a “give me the top 5 countries in each continent” type of query, and which used an external numbers table and a lot of tedious casting.
Why won’t MySQL use the best index in a join?
(Baron Schwartz) Someone recently asked me why the wrong index was being used for a JOIN, making the query run very slowly. We ran EXPLAIN and saw this abridged output:
MySQL Workbench Scripts
(Michael McLaughlin) It’s always interesting when somebody asks why they got an error message, and especially sweet when you’re working on something related that lets you answer the question. They were using MySQL Workbench and wanted to know why they couldn’t open a SQL script file by clicking on t
