Recently I had to fetch data from several tables using ORDER BY and LIMIT statements in MySQL. The problem with LIMIT statement is that it’s applied in the last step after all the rows are fetched. I needed to fetch rows that fit in boundaries specified by x1,y1,x2,y2 as well as information about th
Tag: Open Source
Comparing MySQL Statement-Based and Row-Based Replication
(Chris Schneider) There are many ways you can replicate MySQL data, whether it be a simple two-node cluster, chain or master/master. This article explains the two types of data replication (Statement-Based Replication and Row-Based Replication) available in MySQL.
Performance problem with Innodb and DROP TABLE
(Peter Zaitsev) I’ve been working with an application which does a lot of CREATE and DROP table for Innodb tables and we’ve discovered DROP TABLE can take a lot of time and when it happens a lot of other threads stall in “Opening Tables” State.
Interesting MySQL 5.5 upgrade gotcha
(Ronald Bradford) Today I discovered an interesting upgrade problem with a client migrating from MySQL 5.0 to 5.5. The client who is undertaking the upgrade reported that MySQL 5.5 did not support the DECIMAL(18,5) data type. I easily confirmed this not to be the case:
How InnoDB handles REDO logging
(Ewen Fortune) Xaprb (Baron) recently blogged about how InnoDB performs a checkpoint , I thought it might be useful to explain another important mechanism that affects both response time and throughput – The transaction log.
Create a synonym in MySQL
(Michael McLaughlin) A friend wanted to know how to create a synonym to a library of stored functions and procedures in MySQL. I had to deliver the sad news that you can’t create a synonym in MySQL 5.0, 5.1, or 5.5. You need to write a wrapper function or procedure.
Logging MySQL queries from the client instead of the server
(Baron Schwartz) The “slow query log” is the single most valuable way to examine query execution on your MySQL server. Queries are logged with timing information, and in the case of Percona Server, a great deal of additional performance and other diagnostic information.
On generating unique IDs using LAST_INSERT_ID() and other tools
(Shlomi Noach) There’s a trick for using LAST_INSERT_ID() to generate sequences in MySQL. Quoting from the Manual:
Comparing MySQL Statement-Based and Row-Based Replication
(Chris Schneider) There are many ways you can replicate MySQL data, whether it be a simple two-node cluster, chain or master/master. This article explains the two types of data replication (Statement-Based Replication and Row-Based Replication) available in MySQL.
What is exec_time in binary logs?
(Baron Schwartz) If youfve used MySQLfs mysqlbinlog tool, youfve probably seen something like the following in the output: gexec_time=0 What is the exec_time? It seems to be the queryfs execution time, but it is not.
