June 20, 2013

Post: Fighting MySQL Replication Lag

longer queries. What should you do if you need to update a lot of rows ? Use Query Chopping – this can be running updateUPDATE Example: UPDATE posts SET spam=1 WHERE body LIKE “%cheap rolex%”; This query will perform full table scan in MySQL 5.0

Post: Multi Column indexes vs Index Merge

mysql [localhost] {msandbox} (test) > update idxtest set i2=i1; Query OK, 10900996 rows affected (6 min 47.87 sec) Rows… 1 row in set (0takes about 5 times longer even though in case of full table scan about 50 times more rows

Post: Comparing Percona XtraDB Cluster with Semi-Sync replication Cross-WAN

rows, and calculated an average time for each INSERT to autocommit. Environment Results (ms) Control 0longer than local binary log writing.  It seems conceivable to me that this may be improvable by some Galera tuning. UPDATE…significant. Semi-sync, as expected, takes approximately 1 RTT for … MySQL